How to use certain page properties on page creation but not after page is created? | Community
Skip to main content
vigiaemnewbie
Level 2
March 18, 2019
Solved

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

  • March 18, 2019
  • 3 replies
  • 2685 views

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?

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 arunpatidar

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

3 replies

smacdonald2008
Level 10
March 18, 2019

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

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 18, 2019

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
vigiaemnewbie
Level 2
March 20, 2019

Thank you. This solved it for me.