2020 Wrapped
Let’s review what happened in the Perch universe in 2020
Let’s review what happened in the Perch universe in 2020
Use MySQL’s FIELD() function to fetch Perch items from the database in a custom order
This site is no longer being maintained or updated. Please note the dates of the blog posts when reading.
Use the sort attribute on the perch:categories tags to output categories in a custom order.
What is the each callback function in Perch? What does it do? How can you use it?
Compatibility issues and workarounds: Perch v3.1.6 (or older) and MySQL 8
How to check the variables available to you in a Perch email template
Using custom tag attributes on Perch-templated forms
Bring global sections and PHP into the flexible world of Perch Blocks
Perch’s conditional tags is a powerful feature of its templating engine. Yet, you can in some cases replicate the outcome of perch:if tags with tag attributes and write less code in the process.
A handy Perch template feature is the append attribute. The template engine appends the value of the append attribute to the end of a field.
The else attribute provides a quick and easy way to output a default if a field is empty, but can’t it output falsy values?