Skip to main content
Level 2
Oct 16, 2015 2:27 AM UTC
Solved

Page properties

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.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

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

essewebAuthor
Level 2
Oct 16, 2015 2:27 AM UTC

Thanks.

This seems the easiest way.

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:27 AM UTC

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

Translate
Community Advisor
Oct 16, 2015 2:27 AM UTC

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

Translate