Page properties | Community
Skip to main content
October 16, 2015
Solved

Page properties

  • October 16, 2015
  • 4 replies
  • 1150 views

Hi, is there any way to persist page properties in Crx on page creation?

I've created some properties but only after opening dialogs and save i obtain values in crx and can manage some logic into the page.

 

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 joerghoh

Hi,

at which point are these properties available? When the properties are parts of the templates, you can attach them to the template (at page creation the template is copied over to the right location).

regards,
Jörg

4 replies

Community Advisor
October 16, 2015

CQ5  uses wcmcommand name createPage to create a page with default properties. If you have fields or properties in dialog, it won't be created until you open the dialog and hit OK button.

In order to have you persist data when creating the page you need to write custom wcmcommand which will be writing a custom java class to perform the action you need.

Your question is similar to the following post, please review the responses

https://forums.adobe.com/thread/1189446

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

at which point are these properties available? When the properties are parts of the templates, you can attach them to the template (at page creation the template is copied over to the right location).

regards,
Jörg

essewebAuthor
October 16, 2015

Thanks.

This seems the easiest way.