I'm setting up an Asset Listing that needs to pull assets out of several different folders.
I'm using Dynamic Parameters so I can reuse the listing.
I've chosen 'Array of specific asset IDs or selection group' in the Dynamic parameters, and set up a GET Variable Name.
When I nest the Asset listing, I create a new variable, which I call by the same name as used in the asset listing definition.
I'm not sure, though, how to proceed; how to specify several different Asset IDs to become the target.
I naturally (!) thought of creating one variable for each of the 'target' folders - each variable would be called the same name, and the value would be set to a single Asset ID. No luck: no results found anywhere.
I then deleted all the variables except 1, but I still get no results.
I know the folder I'm targeting has at least one asset that should be picked up, and I'm confident that I've set up the other aspects of the Asset Listing correctly. I've tested this by changing the Dynamic Parameter from 'Array of specific assets...' to 'Replacement Root node....' and the expected assets are returned.
Does anyone know how I'm supposed to set up an 'Array...' of dynamic replacement root nodes, or whether it works at all?
I've finally bitten the bullet and created a new asset list for each set of root nodes. You should see this asset; I've never nested so many instances of asset listings in one page - it must be almost 30. I'm too old for this :)
I've finally bitten the bullet and created a new asset list for each set of root nodes. You should see this asset; I've never nested so many instances of asset listings in one page - it must be almost 30. I'm too old for this :)
There wasn't a way you could do with with one asset listing? Make sure to test the /_performance for that page to see how it is performing. Nesting that many could be a big performance hit.
Yeah, Nic's right. I've done this many times before successfully, both ways.
Replacement root nodes, just use a comma separated list (if you are using a nested div just put the comma-separated list in the variable field value, don't redefine the same field several times). Make sure all id's are children of the static root node. Use this mode to list all of the children assets of the selected roots.
Array of specific id's is somewhat different in that it doesn't traverse the tree. Use this mode if want only the assets you specify and none of their children. Again, all assets must be children of the static root node.
Also, you can't mix and match. Choose replacement root or Array of specific, you can't have both.
If you're having issues, %root_nodes% keyword is helpful to make sure the correct roots are getting through. If the nodes are correct but still no assets showing then there's something else preventing the assets from showing (e.g. double-check status or type filtering, static root node, link matching, basically anything that prevents assets from showing).