Templating recipes
-
Templating
Translate exception messages in frontend
Translate Kirby's exception messages on the frontend in single language sites
-
Templating
Quicktip: Different blueprints — same template
How to use the same template/controller/model for pages with different blueprints
-
Templating
Virtual pages from image gallery
Create virtual pages from a set of uploaded images and their meta data.
-
Templating
Load more with Ajax
Add a load more button to your listings and append items via Ajax.
-
Templating
A brief intro to object oriented programming in PHP
Understanding classes, objects, member functions and common pitfalls
-
Templating
Quicktip: Don't repeat the same query multiple times
"Don't repeat yourself" (DRY) is a coding paradigm that when not heeded can seriously harm performance.
-
Templating
Quicktip: Add blocks to a blocks field programmatically
Update a blocks field from the frontend, for example from form data
-
Templating
Shared Controllers
Share the content of a controller across multiple templates
-
Templating
Quicktip: Fine-tuning cache settings
Control caching from a blueprint option or a field
-
Templating
Menu builders
Create custom menus from the Panel leveraging the power of the pages and the structure field
-
Templating
Fetching field options
Get text labels for your option values from fields
-
Templating
Paginating long posts
Split long post into separate pages with pagination
-
Templating
Custom homepage title
Set a unique title for the homepage.
-
Templating
Art-directed pages
Add custom CSS and JavaScript to style individual pages without the need for additional templates.
-
Templating
Add authors to your pages
Tie pages to a person. Create an author system for your blog posts.
-
Templating
Using blueprints in the frontend
Access blueprints and use this data to control your logic.
-
Templating
Creating a Kirby-powered blog
Set up a blog system with an overview, articles, tags, feeds and more.
-
Templating
Custom post types
Create different templates for different kinds of content.
-
Templating
Generating JSON with Kirby
Create a JSON representation of your blog content in Kirby.
-
Templating
Fun with loops and collections
Foreach loops are control structures useful in many contexts.
-
Templating
Menus
Create any kind of menu you need for your project.
-
Templating
One-pager site
Create a one-pager for small companies or simple portfolios.
-
Templating
Pagination
Use pagination to divide content into a list of digestible chunks.
-
Templating
Kirby templates 101
Learn some PHP basics that make creating templates a breeze.
-
Templating
Previous / Next navigation
Create a previous/next navigation for your site.