Magnolia CMS: How to hide page in horizontal navigation bar at the top of my website

StackOverflow https://stackoverflow.com/questions/7739864

  •  09-02-2021
  •  | 
  •  

Вопрос

I found something about this saying: "In the General/Page properties window: “You may hide a page in the navigation by selecting 'Do not show this page in the navigation'."

Unfortunately I haven't got this option appearing.

Any idea how to do this some other way?

Это было полезно?

Решение

Adrien,

All of the STK page types should have a "Page Info" button in the top-right corner, which will open a dialog that has a "Hide in Navigation" checkbox.

If you're not using the STK pages, or those dialogs have been altered, it's possible to add the necessary property to hide a page in the navigation anyway using the JCR Browser. (The checkbox in the dialog is just another way of setting this value.)

Here's an example:

Hiding the About page in the Demo Site

To add this, just go to Tools -> JCR Browser, find the page you want to hide, click on it, click "New Node Data", and alter the fields to match what I've shown here: name "hideInNav", value "false".

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top