Hi again,
i have some invisible pages as part of another page. But you can reach those “part pages” with the browser. Is it possible to hide them from the navigation?
Thx for help.
Hi again,
i have some invisible pages as part of another page. But you can reach those “part pages” with the browser. Is it possible to hide them from the navigation?
Thx for help.
You could route people trying to visit your “part pages” elsewhere, eg to their parent page:
// Routes
c::set('routes', array(
array(
'pattern' => 'parent-page/(:any)',
'action' => function() {
go('parent-page');
}
)
));
Read more about this in Kirby’s documentation.
These are two different issues.
Thx it works.
I have different urls for the languages so i always need routes * language? Or is there a unique url identifier?
You need routes per language if you use URL-keys.
thanks for your help!