Customize the CQ-DAM search panel | Community
Skip to main content
Level 4
October 16, 2015
Solved

Customize the CQ-DAM search panel

  • October 16, 2015
  • 11 replies
  • 2094 views

Hi masters!

I’m trying to customize the CQ-DAM search panel, in damadmin console. I’m following instructions in [1].

I’ve successfully added a new optionspredicate to add a custom search for ‘activated/deactivated’ assets, looking for a ‘jcr:content/cq:lastReplicationAction’ property, with ‘Activate’ and ‘Deactivate’ values. Nice! smiley

The question is... I would like to add a predicate to filter assets that have a pending activation (thus, assets marked in the ‘Status’ column with a calendar icon, with a message like ‘Task Scheduled…’)

But I don’t know where this information is stored in the JCR repository, and how to define a new predicate with this information. Is it possible?

Do you have any advice?

Thank you very much!

 [1] http://dev.day.com/docs/en/cq/current/dam/extending-cq-dam-search.html

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

This is the reply from our Eng team:

That is not a simple predicate addition, because pending activation is not directly stored in some jcr property but is derived from jcr:content/cq:lastReplicationAction and then looking at the replication queue.

So, one will have to implement a filtering predicate
https://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/search/eval/AbstractPredicateEvaluator.html

little bit of code that can help you find it is pending goes like this
replicationStatus = resource.adaptTo(ReplicationStatus.class);

https://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/replication/ReplicationStatus.html#isPending()

Hope this helps.

11 replies

Sham_HC
Level 10
October 16, 2015

I could not reproduce. File a daycare & get official help.