Created a blog.php template and stored in site/templates folder. The menu snippet results indicate that the ‘blog’ page I created, is actually using a ‘default’ page, rather than the blog template I created. This is my first attempt at using Kirby. What are the components required to create a blog page within Kirby? Want NEWS in the menu/nav to point to a page containing individual ARTICLES
<?php if ($p->hasChildren() && ($p->template() != 'blog') ) { ?>
Give a look at the new kirby cookbook it has a lot of solutions. Including one how to make a blog! It’s a pretty good guide and after a bit of tweaking I got a nice working solution.
I selected the blog template when creating the blog page in the panel. The content folder suggests a folder named ‘blog’ containing 3 articles which contain a few fields like date, title etc.
When I echo the template being used from the navigation loop to test, it shows the template being used to be default, not blog, which is causing a failure of execution of the blog article loop I believe?
I will definitely go to the cookbook!