Asset Grouping - Remove Sort Order


#1

I need to reflect my asset maps folder structure via an Asset Listing.

 

To try and achieve this, I'm using Asset Grouping restricted to Folder Types with the Sort By option unselected ("--Selected--")

 

As the frontend is printing some random folder order, have I wrongly assumed that the above settings would reflect my asset map's folder structure?

 

Cheers for any help.


(Robin Shi) #2

"sitemap" asset is a better way to do that as it follows the order in the asset tree.


#3

"sitemap" asset is a better way to do that as it follows the order in the asset tree.

 

Cheers Robin

 

Oh, ok. I'll look into this.

As long as a sitemap asset can give me formatting for different asset types, all should be good I guess.

 

Wondering if there'd be any performance issues printing out assets this way...


(Robin Shi) #4

In my opinion sitemap is lighter than asset listing (especially when the grouping is turned on). In sitemap you can customise the output as per content type.


#5

In my opinion sitemap is lighter than asset listing (especially when the grouping is turned on). In sitemap you can customise the output as per content type.

 

 

Thanks for the suggestion Robin, 

 

Although this looked promising (had desired display formats and dynamic root node options), I could not see any way to remove the hyperlink from the parent (Folder).


(Robin Shi) #6

Yes that's right. The sitemap creates listed item as linked. It seems you have to use nested asset listings with dynamic root node.


#7

Yes that's right. The sitemap creates listed item as linked. It seems you have to use nested asset listings with dynamic root node.

 

Nested asset listings with dynamic root nodes is what I currently use. If only it would just replicate the order of the asset tree...

Any other Matrix Jedi tricks you could recommend?
Cheers.


(Tom Chadwin) #8

I've also come across this issue. My source data (MS SQL Server) uses month names, and the records are in date order. I need to group by month so that I can output a month header, but ASC or DESC will sort the months alphabetically, which is obviously not what I want.

 

Any ideas?


(Nic Hubbard) #9

I've also come across this issue. My source data (MS SQL Server) uses month names, and the records are in date order. I need to group by month so that I can output a month header, but ASC or DESC will sort the months alphabetically, which is obviously not what I want.

 

Any ideas?

 

I would use two asset listings and the list_current_asset_id method. It gives you more control over grouping, and you can sort the groups however you would like.


(Tom Chadwin) #10

Thanks, Nic. I've ended up going for a simpler solution in this case. I was able to amend the data returned to include the month number as well as the month name. I've then added an additional asset grouping above the month name one, grouping by this new month number.

 

If I'd not had access to the query, your approach would have been the answer.