Hi all,
I’ve recently been upgrading all of our backend tools and creating Content Container Templates to both make things easier and remove the need for any markup to be done by our editors.
One of our commonly used elements on our pages is a “Landing Listing” which lists:
- Asset children of the current page
- Thumbnails (if the child asset contains one)
- Description (if the asset Description metadata exists)
- Asset children of the child asset
The idea of using a Content Template here is to allow the user to toggle each of the above options. The first 3 are easy and work great with an “On/Off” select, but the asset children of the listed asset is proving to be a mega issue, as it’s a nested secondary Asset Listing using the Matrix “list_current_asset_id” session variable as it’s root.
I’m not able to use a %begin_asset_metadata_page.index.asset-children% for example, as I’ve only been able to get the secondary Asset Listing to work if I create a new content container and select the Nest Content content type, and it breaks the %begin% structure as it’s outside of it’s container
If I could %globals_asset_contents_raw:12345^with_get:root=asset_assetid% that would solve all of my problems, but unfortunately I haven’t been able to find a keyword that stays in context, like %list_current_asset_assetid% does in the nested container.
Just wondering if anyone has encountered this before and has a way around it or if anyone knows of a way to feed a nested Asset Listing the current asset ID that it’s listing by using globals_asset_contents_raw?
Thanks heaps in advance!