Matrix Version:6.24
Hello,
I have a metadata schema applied to our /home page which includes a related asset field.
This related asset points to a REST resource, which returns its contents. This is then then manipulated as required using SSJS. Works perfectly fine on /home or any of our other pages.
NB: The SSJS is being referenced on the page like so: %globals_asset_contents_raw:123456%
However, when I preview the change at URL entry point, the metadata does not return.
Example:
yourpage.foo/home (works)
yourpage.foo (doesnt)
I have tried using both globals and frontend to string together the keywords - both will return on any of the pages applied, except for when you visit the entry point / top level landing page (aka home).
%globals_asset_metadata_foo-Bar^as_asset:asset_contents_raw^empty:[]%
%frontend_asset_metadata_foo-Bar^as_asset:asset_contents_raw^empty:[]%
For testing purposes, I added a related field to one of our site schemas, and used %globals_site_metadata_foo-Bar…% and worked fine - verifying keywords, modifiers, etc are correct.
The problem now is that whilst it works adding the schema to the site level, not all of our users have access to schemas in the globe.
Is there a way to get around this without having to rely on schema applied to the globe?
Thank you.