Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Editing Assets Admin Search Rail

Avatar

Level 3

Adding search predicates for tag lists has worked well.  I have a Language dropdown in the schema that I would like to be able to search against.  Would I create an options list node for those languages and use that node path in the Options field for the Language predicate in the search rail? 

Thanks,

Jim P

1 Accepted Solution

Avatar

Correct answer by
Level 3

Very good.  Got it working correctly.  I created a node under /apps/dam/options/predicates/language that matched exactly the metadata "value" in the language drop-down contained in the schema.  Using the "Options Predicate" in the search rail and set as below, all works well.  In our case, the language drop-down in the schema had been created with the language name as the title, but the "value" contained the 2 or 4 letter language abbreviation.  We needed to make sure the "value" in the search predicate matched exactly what was in the drop-down.  Seems obvious now but at the time just missed the connection.  Thanks Scott, appreciate your help!

Jim P

1280242_pastedImage_0.png

1280369_pastedImage_1.png

View solution in original post

8 Replies

Avatar

Level 10

Please post a screenshot to make it clear what you want to do.

Avatar

Level 3

I have a field defined in the metadata schema named Language.  I'd like to add this field to the Assets Admin Search Rail so I can search by language.

Jim P

1278830_pastedImage_0.png

Avatar

Level 3

This is one area the docs are really lean.  One would expect any field in the schema would be easy searchable.  Is there an example anywhere that spells out how a drop-down based field is added to the search rail?

Thanks,

jim P

Avatar

Level 10

I am checking internally to see if anyone has written a blog on this subject. I know there are no docs in this use case.

Avatar

Level 3

Thanks Scott.  If i can get steered in the right direction I'll write up a detailed doc on it.

Thanks again,

Jim P

Avatar

Correct answer by
Level 3

Very good.  Got it working correctly.  I created a node under /apps/dam/options/predicates/language that matched exactly the metadata "value" in the language drop-down contained in the schema.  Using the "Options Predicate" in the search rail and set as below, all works well.  In our case, the language drop-down in the schema had been created with the language name as the title, but the "value" contained the 2 or 4 letter language abbreviation.  We needed to make sure the "value" in the search predicate matched exactly what was in the drop-down.  Seems obvious now but at the time just missed the connection.  Thanks Scott, appreciate your help!

Jim P

1280242_pastedImage_0.png

1280369_pastedImage_1.png

Avatar

Level 2

Hey @jimp38732070  I have same usecase, But when I try to use options predicate I am able to see list of checkboxes in the form instead of dropdown with options. How did u manage to make it dropdown Could you please share your thoughts here.