Create DAM structure with Blueprint | Community
Skip to main content
October 16, 2015
Solved

Create DAM structure with Blueprint

  • October 16, 2015
  • 6 replies
  • 1138 views

Hi, 

I have a blueprint for creating  a new site. Along with the new site structure I would also like to already create a DAM structure to go with it. 

What would be the best way to go about this?

Thanks for your help, 

Alex

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 Yogesh_Upadhyay

It is not supported OOTB. You might have to write your own end point to do this. For example when you create a site using blueprint /bin/wcmcommand get called with cmd=createSite which internally calls CreateSiteCommand class which then looks for your configurations from input form and then create site. In order to include DAM or tags or any path, you might need to extend this and with your own end point, then update create site form action to point to your end point. Hope it will help.

Yogesh

6 replies

Yogesh_Upadhyay
Yogesh_UpadhyayAccepted solution
October 16, 2015

It is not supported OOTB. You might have to write your own end point to do this. For example when you create a site using blueprint /bin/wcmcommand get called with cmd=createSite which internally calls CreateSiteCommand class which then looks for your configurations from input form and then create site. In order to include DAM or tags or any path, you might need to extend this and with your own end point, then update create site form action to point to your end point. Hope it will help.

Yogesh

WhoaShekhar
October 16, 2015

Hi Alex,

Thanks for reaching out.

You may want to look at the below mentioned doc to see if  it helps:

http://docs.adobe.com/docs/en/aem/6-0/administer/content/assets.html

thanks!

smacdonald2008
October 16, 2015
doeringaAuthor
October 16, 2015

Thanks Yogesh, 

sounds good :)

I have a new service/component that implements the WCMCommand class and I've updated the cmd property to call my new class. 

But I can't find the correct method to create the site when overriding the performCommand().

Would you know how to do that?

Thanks, 

Alex

Yogesh_Upadhyay
October 16, 2015

Hello Alex,

Unfortunately not all classes required to extend LiveCommand is exposed or extensible. You might have to Extend com.day.cq.wcm.api.commands.WCMCommand and write your own performCommand. I have created a ticket with daycare to exposed some more classes under com.day.cq.wcm.msm.impl which is exposed as service but not exported by any bundle. That will make your life easier.

Yogesh

doeringaAuthor
October 16, 2015

Sounds good. Thanks Yogesh!