Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How can I define a page as non routable

Started by Muut Archive 9 years ago · 3 replies · 896 views
9 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!

9 years ago

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

9 years ago

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

9 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 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2935 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago