JSON data source - rest asset bug?

(TT) #1

Matrix Version:


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?



(David Schoen) #2

I’m not sure if there’s a work around for this, but it has been logged as a bug - https://jira.squiz.net/browse/MATRIX-1631 .

(David Schoen) #3

It should be possible to work around for now by nesting the REST Resource in to a Standard Page and using that in the JSON Data Source instead.

(TT) #4

Thanks David! I’ve tested it and it works which is good solution until the bug is fixed/we get an upgrade!