I went to use the json data source to take in json results from a REST resource asset and display them as shadow assets but it won’t let me select it within the details of the data source asset… it comes up with
Asset ID #261482 is of type page_rest_resource_js. Only “page_rest_resource”, “page_standard”, “page_asset_listing”, “search_page”, “file”, “text_file”, “js_file” asset types are allowed.
I’m guessing this is a bug from the matrix update of changing the rest resource to being rest resource with js by default and the name part hasn’t been updated on the asset types allowed?
We’ve recently upgraded to 5.5.3.3 and am encountering precisely this issue, however am getting a Syntax Error when trying the workaround which I’ve interepreted as:
Create a REST Resource asset using a GET to retrieve the remote content
Create a Standard Page asset, delete the WYSIWYG block,add a nested content block and nest the REST resource created above
Set the Standard Page as the Source asset for the JSON data source.
Looking at the Raw Source Data in the JSON data source, the content is being retrieved but isn’t being parsed.
I’ve set the page to use a blank paint layout and totally blank Design (so stripped out all EES and HTML) but Matrix is still adding a
Hi Tim and thanks for the tip re. the Design file layout which was a big help
Matrix was adding <div id=“nested_rest_resource_[container id]”> </div> around the nested content which was causing a JSON error when trying to view the raw data, but this was resolved by changing the nested container style to Raw and it’s now working as expected.