Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

While creating the page I need some properties

Avatar

Level 5

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

Ronnie09_1-1663134942586.png

 

 

After creating the page that option is visible

Ronnie09_0-1663134894991.png


There is no option tags, hide in nav and others

Ronnie09_2-1663135011143.png

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

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

View solution in original post

12 Replies

Avatar

Community Advisor

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

Avatar

Community Advisor

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.

 

arunpatidar_0-1663142119060.png

 

Avatar

Level 5

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

Avatar

Level 5

@arunpatidar I tried this below is the XMLInside tabs/basic folder 

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured">
    <items jcr:primaryType="nt:unstructured">
        <column jcr:primaryType="nt:unstructured">
            <items jcr:primaryType="nt:unstructured">
                <title
                    jcr:primaryType="nt:unstructured"> 
<items jcr:primaryType="nt:unstructured"> <hideinnav cq:showOnCreate="{Boolean}true"> </hideinnav> </items> </title> </items> </column> </items> </jcr:root>


I tried this but after enabling hidein nav from page initial 2 checkboxes are appearing. Otherwise it is working perfectly fine

Ronnie09_0-1663155481846.png

 

Avatar

Level 5

@arunpatidar 

I have 3 template in one of the template I want it checked. 

 

If add check property in component it is appearing in all pages irrespective of template

Avatar

Level 5

@arunpatidar 

 

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

Avatar

Correct answer by
Community Advisor

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

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

Avatar

Level 3

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.