Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to use certain page properties on page creation but not after page is created?

Avatar

Level 3

I am creating a custom page properties dialog for my page but I need to use some default page properties like "Title" etc. but don't want to display these fields once that page is created. I know about the "cq:showOnCreate" and "sling:hideResource" properties but both cannot be used together. If I give a property cq:showOnCreate=true and sling:hideResource=true then the property is hidden on page creation and also after page creation. How can I display certain properties only during page creation and not after page creation?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Please check below:

Customizing Views of Page Properties

  • Page property to be available in the create view (e.g. Create Page wizard):
    • Name: cq:showOnCreate
    • Type: Boolean
  • Page property to be available in the edit view (e.g. View/Edit) Properties option):
    • Name: cq:hideOnEdit
    • Type: Boolean


Arun Patidar

View solution in original post

3 Replies

Avatar

Level 10

What exactly are you trying to accomplish by creating a custom page properties dialog.

Avatar

Correct answer by
Community Advisor

Please check below:

Customizing Views of Page Properties

  • Page property to be available in the create view (e.g. Create Page wizard):
    • Name: cq:showOnCreate
    • Type: Boolean
  • Page property to be available in the edit view (e.g. View/Edit) Properties option):
    • Name: cq:hideOnEdit
    • Type: Boolean


Arun Patidar

Avatar

Level 3

Thank you. This solved it for me.