I’ve created an asset listing for each of our Matrix instances to list custom form and asset builder assets, looking to have a better picture of submissions that might be affected by upgrades or major system changes.
One of the details I’d like to include is the asset lineage, and in particular which site the asset lives under.
%asset_lineage% will give me the first part of that, but I’m not having luck finding something to give me the site detail quickly.
I think it might do. Just need to push it through some SSJS - is there a way I can access the lineage subarray directly from the keyword in this:
> <script runat="server">
> var linkingInfo = %asset_linking_info_current%;
> var lineage = linkingInfo.lineage;
> // want first two items typically for the parent folder and parent site in our setups
> print('%globals_asset_name:'+linkingInfo.lineage[0]+'% :');
> print('%globals_asset_name:'+linkingInfo.lineage[1]+'% : ');
> </script>
That’s a lot simpler. I’m happy using SSJS now, but I’m mindful that some of our content staff may not be. Plus, having to lookup unknown keyword modifiers always gives you the opportunity to discover more