Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

How can I define a page as non routable

Started by Muut Archive 10 years ago · 3 replies · 1019 views
10 years ago

Hi, when developing my menu, I want to define a page, that contains other pages, as non routable, so that its title appears in the menu bar, but it can not be accessed by the user. I've set the routable field to false, but it continues being routable, and appears the 404 not found error page. How can I fix it? Thanks!

10 years ago

You just need to update your menu twig code to not even link a page that is non-routable.

10 years ago

So which twig code I have to update? I don't know what you mean with menu twig.
Thanks!

10 years ago

All output is controlled by a theme, so it depends on the theme you are using?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2280 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3557 9 years ago
Archive · by Muut Archive, 9 years ago
3 1621 9 years ago