TOUCH UI - Hide In Navigation - Default to checked | Community
Skip to main content
Level 4
March 4, 2016
Solved

TOUCH UI - Hide In Navigation - Default to checked

  • March 4, 2016
  • 5 replies
  • 3360 views

I'm using AEM 6.0 SP3, Touch UI.  In the page dialog, is there a way to set the Hide In Navigation checkbox to "checked" by default?

I tried adding a cq:template to the page but that does not seem to work.

Thanks,

-Dean

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 Lokesh_Shivalingaiah

Goto 

/libs/foundation/components/page/cq:dialog/content/items/tabs/items/basic/items/column/items/title/items/hideinnav

and add a property 'checked' and value 'true' of type 'String'. It will set the value checked by default.

However, you will have to overlay this tab in your <project>/components/page and make the change.

 

Regards,

Lokesh

5 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
March 4, 2016

Goto 

/libs/foundation/components/page/cq:dialog/content/items/tabs/items/basic/items/column/items/title/items/hideinnav

and add a property 'checked' and value 'true' of type 'String'. It will set the value checked by default.

However, you will have to overlay this tab in your <project>/components/page and make the change.

 

Regards,

Lokesh

Level 4
March 4, 2016

Thank you Lokesh.

That worked for when I actually open the dialog and see that the checkbox is enabled.

If someone creates a page, but does NOT edit page properties, is there a way to have it default to "checked"?

Thanks,

-Dean

Lokesh_Shivalingaiah
Level 10
March 4, 2016

I dont see any options for it. You may have to customize the service when the page is created to read that value and store it.

Kunal_Gaba_
March 4, 2016

You can create the template node (cq:Template) of the page with the jcr:content node having the property name and value preset on it. And then when you create the page content then it should automatically have the value set. 

Ankur_Khare
Community Advisor
Community Advisor
March 4, 2016
      As Lokesh mentioned we can achieve overwriting the the dialog. Other way is to write a service which should be called from your page component which is used by your template. In this service write the logic to set a property to your node hideinnav as true using currentpagepath as parameter in your custom service.