Expand my Community achievements bar.

SOLVED

TOUCH UI - Hide In Navigation - Default to checked

Avatar

Level 5

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 5

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

Avatar

Level 10

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.

Avatar

Employee Advisor

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. 

Avatar

Community Advisor
      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.