While creating the page I need some properties | Community
Skip to main content
Level 6
September 14, 2022
Solved

While creating the page I need some properties

  • September 14, 2022
  • 3 replies
  • 2105 views

There is one hide-in navigation checkbox present in the page properties dialog. I want it to be visible while creating the page and always remain checked. But when I go to the core component basic tab there is no option to overlay how can I achieve that. 

 

While creating the page that option is not visible I want to make it visible and checked

 

 

After creating the page that option is visible


There is no option tags, hide in nav and others

 

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

@arunpatidar 

 

Same result ... Checkbox is coming fine but adding checkbox in initial shows two checkbox during page creation


Its because of renderReadOnly="{Boolean}true" property. remove this.

or make it false, renderReadOnly="{Boolean}false"

3 replies

Dipti_Chauhan
Community Advisor
Community Advisor
September 14, 2022

Hi @ronnie09 

  Only properties with "cq:showOnCreate = true" are shown on create page wizard. You can update this property if you want these properties to be shown on create page wizard.

 

Thanks

Dipti

arunpatidar
Community Advisor
Community Advisor
September 14, 2022

Hi,

 

You need to copy the basictab from /libs/wcm/foundation/components/basicpage/v1/basicpage/tabs/basic to your project and include this tab, here you can add below property to /items/column/items/title/items/hideinnav item

cq:showOnCreate
Boolean
true

 

to add a default value add in the template's initial node.

 

 

Arun Patidar
Ronnie09Author
Level 6
September 14, 2022

Hi @arunpatidar 
If you have xml of tab overlay can u share or node structure screenshot. I tried the same didn't worked for me

arunpatidar
Community Advisor
Community Advisor
September 14, 2022
Chandra_Hire
Level 4
September 14, 2022

Hi @ronnie09,

 

Core page component /libs/core/wcm/components/page/v1 (or v2/v3) inherits foundation page /libs/wcm/foundation/components/basicpage/v1/basicpage.  This foundation page has diaglog property for hiding navigation /libs/wcm/foundation/components/basicpage/v1/basicpage/tabs/basic/items/column/items/title/items/hideinnav

 

You can overlay/extend these page components accordingly.

 

Hope this helps.