Template API
Build custom PHP apps on Perch and make use of the Perch API to render Perch Templates with data from any source.
Build custom PHP apps on Perch and make use of the Perch API to render Perch Templates with data from any source.
Implement a list and detail pattern in a maintainable way, handle unmatched slugs and pay attention to your items SEO.
This site is no longer being maintained or updated. Please note the dates of the blog posts when reading.
Perch has a number of very helpful utility functions. perch_get() is probably the most used one of them. Let’s take a look at what it does and how it can be used.
Perch has an API that allows developers to build add-ons on top of the Perch platform. Let’s use the Perch API to build a small Perch app.
A common strategy on e-commerce sites is to include a brief list of similar products on the product detail page. Perch has great filtering options to help us achieve this.
Create a user-filtered product listing for your e-commerce store.
Handle things differently in your code based on the Production Mode.
Set your config files to enable you to work with ease in different environments and test on multiple devices
Improve your Perch workflow and asset management with Gulp and Pipit Pinion.
Let’s try writing Perch Templates with Pug (previously known as “Jade”).
Control Pages at the page level to display optional content or trigger some behaviour on certain pages.