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

Custom DAM Publish Actions

Avatar

Level 2

I was wondering if someone could point me in the direction to some articles, API documentation, or the proper terms to google in order to create a custom action under the Quick Publish selection and Manage Publication options under the navigation menu for the DAM.  

 

The exact use case for this would be that we would like to use the DAM as a central repository for our digital assets and right now when we click on an image or pdf in the DAM we can select under Quick Publish options for "Publish to AEM" or "Publish to Brand Portal"   I would like to add custom options for other integrations so that I can push an asset to other internal tools or 3rd party integrations (for example, "Publish to Salesforce Knowledge Center").

 

Any assistance or guidance would be greatly appreciated.

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 3

Overlay the below path[1] from libs and add your option in content.xml in the below format[2]

 

[1] - /apps/wcm/core/content/editor/_jcr_content/content/items/content.xml

 

[2] - 

<publishtosfkc
granite:class="pageinfo-publishtosfmc"
granite:title="Publish to SFKC"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
text="Publish to SFKC">
<granite:rendercondition
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/renderconditions/and">
<canreplicate
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/renderconditions/canreplicate"
path="${requestPathInfo.suffix}"/>
<isSFMCTemplate
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/renderconditions/<comp>"
path="${requestPathInfo.suffix}"/>
</granite:rendercondition>
</publishtosfkc>

View solution in original post

2 Replies

Avatar

Correct answer by
Level 3

Overlay the below path[1] from libs and add your option in content.xml in the below format[2]

 

[1] - /apps/wcm/core/content/editor/_jcr_content/content/items/content.xml

 

[2] - 

<publishtosfkc
granite:class="pageinfo-publishtosfmc"
granite:title="Publish to SFKC"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
text="Publish to SFKC">
<granite:rendercondition
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/renderconditions/and">
<canreplicate
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/renderconditions/canreplicate"
path="${requestPathInfo.suffix}"/>
<isSFMCTemplate
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/renderconditions/<comp>"
path="${requestPathInfo.suffix}"/>
</granite:rendercondition>
</publishtosfkc>

Avatar

Level 2

Hello, thanks for your reply and sorry for the delay in the response. I tried to recreate your code, but when I go into the DAM on my localhost there is no new button added under Quick Publish after selecting an image asset.

 

The steps I took to attempt this were to use CRXDE Lite and go to the path:

/libs/wcm/core/content/editor/jcr:content/content/items/content and click on Overlay Node and hit OK with the default settings provided.

 

After I attempted to add the nodes as specified by the XML you provided. 

 

Do you know the best location for docs to find additional information for some of the node properties you specified in your sample?  

Thank you,