Publish assets automatically on folder | Community
Skip to main content
June 10, 2016
Solved

Publish assets automatically on folder

  • June 10, 2016
  • 3 replies
  • 3117 views

Hello, I want to publish an asset instantly as it's dropped into a specific folder.

How can I do this?

 

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 kautuk_sahni

Hi 

For Replication Package, please have a look at :- http://stackoverflow.com/questions/18955982/how-to-activate-programmatically-a-page-in-cq5-workflow

and 

Option 2 [Not tried, but could work]

Activate the page/assets on modification using Workflows

Link:- http://adobeaemclub.com/publish-assets-on-modification-using-workflow-launcher-in-aem/

[img]http://adobeaemclub.com/wp-content/uploads/2016/01/Workflow-Launcher.png[/img]

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni

3 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
June 13, 2016

Hi 

For Replication Package, please have a look at :- http://stackoverflow.com/questions/18955982/how-to-activate-programmatically-a-page-in-cq5-workflow

and 

Option 2 [Not tried, but could work]

Activate the page/assets on modification using Workflows

Link:- http://adobeaemclub.com/publish-assets-on-modification-using-workflow-launcher-in-aem/

[img]http://adobeaemclub.com/wp-content/uploads/2016/01/Workflow-Launcher.png[/img]

 

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
June 10, 2016

Is there a example of this anywhere?

Not too familiar with this Replication Package

smacdonald2008
New Participant
June 10, 2016

You can write a Java program to watch a specific folder on the desktop.

https://docs.oracle.com/javase/tutorial/essential/io/notification.html

WHen you drop a file in a Java Watch Folder- post the file to an AEM sling settler. In the servlet - place the file in the DAM. Then use this API to replication content:

https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/day/cq/replication/package-summary.html