Sorting different asset types


(Mahearnpad) #1

5.4.1.3

I have mostly file types (PDF, Word, Excel), but then a few redirect page assets also.
I am using a search page asset to find and list them in alphabetical order, by the file title, and redirect page name.

What gets displayed are all the file types first (correctly sorted), and then the redirect page types at the bottom of the list (correctly sorted). I can’t see a way to have the redirect page assets listed in with the file types. Ideally they would all be the same type, but unfortunately we have some exceptions to this, as always.

So, hoping someone knows how to fix this?


(Peter McLeod) #2

Hi
I think there have been similar solutions posted previously for similar situations - but something like…

  1. unify the sort field - create a metadata field for a sortable name.
  2. if just dealing with files and redirect assets then its default could be a keyword like %asset_attribute_title^empty:{asset_name}%
  3. then set the sort on this metadata field and regenerate the schema.
    Thanks
    Peter

(Mahearnpad) #3

Hi Peter

I like this solution.

thanks