Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Custom DAM Publish Actions

bryane54211190
Level 2
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
RMGJID
Correct answer by
Level 3
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
RMGJID
Correct answer by
Level 3
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

bryane54211190
Level 2
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,