Is it possible to show asset list based on asset id


(Pomster09) #1

I've build a search engine to search my form submissions which works brilliant. Does anyone know how to set up an asset listing, where I can pass (via URL) a link with the asset id in it, and only show the details of that one asset to it. I know how to pass the asset position from one asset to another and display the items, but I'm using search, and search doesn't give asset positions.


(Talk) #2

Hey mate, I'm not quite clear on what you want to do. I f you'd like to target and list the children of a single asset, then add a dynamic replacement root node for your listing (towards the bottom of the details screen). Here you have a few different options. You can use the standard asset keywords for the currently used asset, use a get variable from a URL query string, i.e. 'asset' for 'site.com/list?asset=12345', or if you're nesting the listing in a type format, use Session Variable, and enter 'list_current_asset_id'


(Nic Hubbard) #3

I've build a search engine to search my form submissions which works brilliant. Does anyone know how to set up an asset listing, where I can pass (via URL) a link with the asset id in it, and only show the details of that one asset to it. I know how to pass the asset position from one asset to another and display the items, but I'm using search, and search doesn't give asset positions.

 

If you set the Asset Listing Min and Max Depth it will use the root node as the source asset. So, if you do this, and pass in a GET dynamic parameter then you should be able to just list that asset.


(Pomster09) #4

Hi Jeremy, what I want to do is show all the data from an individual form submission. The format type is "form submission" and I've tested it on the submission folder, and I can print a list of all the submission no problem. But what I want is to view just one at a time depending on asset id. So I have a squiz search which displays as per below:

 

notifications.jpg

 

I want to click the "view" link and see the full details of each notification. I can't use search to display the submission data, so I have to pass the asset id to an asset listing. I tried the GET parameter and set it to view this with my link set as: View

But I end up getting a "no results found". this is the setting for the dynamic part:

 

dynamic.jpg


(Nic Hubbard) #5

But I end up getting a "no results found". this is the setting for the dynamic part:

 

 

Did you see my comment about setting the Max and Min Depth?


(Talk) #6

Sounds like Nic’s on the money. Good luck :slight_smile:


(Pomster09) #7

What can I say Nic? I've already put you in the superstar bracket once today, where to from there? But that worked a treat, set both max and min to '0' values, switched off direct links, and worked at first attempt. 

 

Thanks so much, and to you Jeremy, owe you both a beer.


(Nic Hubbard) #8

Happy to help. :)


(Talk) #9

Love a happy ending :D