Asset Listing with Groups


#1

Hoping someone can assist with the below.

 

I'm trying to setup an asset listing with grouping to print the Parent folder's name and all sub-level document assets beneath. This issue I'm having is how to stop child folder names being printed on the front end (below backend structure is necessary as it's required for another page).

 

Cheers in advance for any assistance.

 

-----------------------------------------------------------

 

Backend Structure:

  • Parent folder
    • Child folder 1
      • Doc Asset 1.1
      • Doc Asset 1.2
      • etc.
    • Child Folder 2
      • Doc Asset 2.1
      • Doc Asset 2.2
      • etc.

Desired Output

 

Parent folder

  • Doc Asset 1.1
  • Doc Asset 1.2
  • Doc Asset 2.1
  • Doc Asset 2.2
  • etc.

#2

Yeah, I'm probably not making much sense here...

 

Another way to get around this would be to use a keyword to access the Variable Value listed under an asset listing's Dynamic Options. Does such a variable exist?


(Nic Hubbard) #3

Do you only have one root node? If so, you could use the as_asset keyword modifier on the root nodes keyword of the Page Contents. This would be the parent folder. Then you can just list the children normally.


#4

Thank you Nic! exactly what I needed :D

%root_nodes^as_asset:asset_name%

Cheers!