How to use certain page properties on page creation but not after page is created? | Community
Skip to main content
vigiaemnewbie
Level 2
Mar 18, 2019 1:52 PM UTC
Solved

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

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Mar 18, 2019 2:47 PM UTC

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

3 replies

vigiaemnewbie
Level 2
Mar 20, 2019 11:30 AM UTC

Thank you. This solved it for me.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Mar 18, 2019 2:47 PM UTC

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
Translate
Arun Patidar
smacdonald2008
Level 10
Mar 18, 2019 2:37 PM UTC

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

Translate