Dynamic root node

What are the options (if any), for having an asset lister list assets based on a dynamic root node?


I can see there's a section for this on the details screen, but cannot figure out how to use it - or whether this is in fact how it was intended to be used.



TIA

Yeah, that is what it is for. You can set it to take a GET, POST, asset keywords, etc. So you could pass in the root node using something like www.mysite.com/page?root=123


Checkout the manual page:

http://manuals.matrix.squizsuite.net/asset-listing/chapters/details-screen#Dynamic-Parameters



It is a very very useful feature!

[quote]
What are the options (if any), for having an asset lister list assets based on a dynamic root node?



I can see there’s a section for this on the details screen, but cannot figure out how to use it - or whether this is in fact how it was intended to be used.



TIA

[/quote]



Hi,

I am not entirely sure if I understand what you mean by “options”. If you mean options like ‘asset types’, ‘status’, etc.,. they are the one that are already configured on the details screen. Don’t hesitate to correct me if I am going in wrong direction.



Wondering if you have had a look at the manuals.



Ash

[quote]
Hi,

I am not entirely sure if I understand what you mean by “options”. If you mean options like ‘asset types’, ‘status’, etc.,. they are the one that are already configured on the details screen. Don’t hesitate to correct me if I am going in wrong direction.



Wondering if you have had a look at the manuals.



Ash

[/quote]



Hi Ash



By “options”, one of them was what Nic mentioned - passing in the assetid as a get request. I mean are there any more options like this? For example, can I use arrays of values, or json or xml data, or metadata to choose the root asset id dynamically? Can I query a database and use the value from this as the root node?



I may be wanting to do something that just isn’t possible with the asset lister.



The manual isn’t much help with this either, by the way - hence the questions.

[quote]
By "options", one of them was what Nic mentioned - passing in the assetid as a get request. I mean are there any more options like this? For example, can I use arrays of values, or json or xml data, or metadata to choose the root asset id dynamically? Can I query a database and use the value from this as the root node?

[/quote]



Yes, you can pass in a comma separated list of root nodes, using GET or POST.



As for using JSON, you can't pass in JSON objects directly, but you could get values from JSON or XML, then use those to call your asset listing using ajax. I have done this a lot in the past and it works really well.

[quote]
Yes, you can pass in a comma separated list of root nodes, using GET or POST.



As for using JSON, you can't pass in JSON objects directly, but you could get values from JSON or XML, then use those to call your asset listing using ajax. I have done this a lot in the past and it works really well.

[/quote]



Thanks Nic