Custom DAM Publish Actions | Community
Skip to main content
bryane54211190
Level 2
August 11, 2020
Solved

Custom DAM Publish Actions

  • August 11, 2020
  • 1 reply
  • 1088 views

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

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 rahulmengji

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>

1 reply

rahulmengjiAccepted solution
Level 3
August 12, 2020

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>

bryane54211190
Level 2
August 17, 2020

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,