I am trying to link from the nav to a static page that I don’t want to be edited. Is there a way to do that? I really want Kirby to power a specific section of a site, not the entire thing. Suggestions?
If you don’t have to edit the link and if the order does not matter, the most simple way would be to just add the link to the navigation manually.
Other than that, you can add a page for each link with a single url field that contains the link to the static page. The template for these pages would then redirect to the given URL. Hide these pages from the panel.
Do you have a recommendation on where to place these pages? I still want to use the snippet header and footer, just don’t want the content to be changed.
Example:
http://localhost:8888/site/about.php
Gives a page not found.
I placed my about.php in the site folder.
Wouldn’t it be easier to create these pages in Kirby but make them readonly or completely hide them from the panel?
You would have to place your external php templates outside of the /site
folder, because these files are not directly accessible.
Ah! Ok. that’s what I was wondering. Thank you for your help!