Adding Create button in Asset Search console | Community
Skip to main content
Level 3
August 19, 2020

Adding Create button in Asset Search console

  • August 19, 2020
  • 2 replies
  • 1479 views

Hi Team,

 

We overlay omnisearch header under /apps[/apps/granite/omnisearch/content/metadata/asset/actions/selection] and copied create button from /libs [/libs/dam/gui/content/assets/jcr:content/actions/selection/create]. Was able to get create button, but functionality didn't work as expected, have updated couple of js files but no luck. Is this the right way to achieve this functionality?

 

We are looking to achieve workflow trigger functionality in assets search results console.

 

Couple of other options:

1. Overlay the create button

2. Extend the create button [didn't work as expected]

3. Create custom button with custom model and functionality [Final Option]

 

Thanks in advance.

 

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

2 replies

aanchal-sikka
Community Advisor
Community Advisor
October 18, 2023

Create Workflow option is available in latest AEMaaCS SDK.

 

If a user has Read access on the Workflow Models, he should be able to trigger the workflows. Here is the rendercondition at http://localhost:4502/libs/granite/omnisearch/content/metadata/asset/actions/selection/create/items/createworkflow.infinity.json

{ "jcr:primaryType": "nt:unstructured", "action": "foundation.dialog", "granite:class": "cq-dam-omnisearch-workflow", "granite:rel": "cq-damadmin-admin-actions-createworkflow", "icon": "workflow", "text": "Workflow", "activeSelectionCount": "multiple", "sling:resourceType": "granite/ui/components/coral/foundation/collection/actionlink", "data": { "jcr:primaryType": "nt:unstructured", "src.uritemplate": "/mnt/overlay/dam/gui/content/commons/createworkflowdialog.html", "nesting": "hide" }, "granite:data": { "jcr:primaryType": "nt:unstructured", "trackingElement": "assets-omnisearch-results-create-workflow", "multipleWorkflowLimit": 15 }, "granite:rendercondition": { "jcr:primaryType": "nt:unstructured", "sling:resourceType": "cq/gui/components/renderconditions/canreadworkflowmodels" } }
Aanchal Sikka
Teja_GAuthor
Level 3
October 26, 2023

Does this option available only in AEMaaCS SDK ? Whats the alternate for other versions?

kautuk_sahni
Community Manager
Community Manager
October 26, 2023

@teja_g Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni