News updates, tips on using Perch and running a great web design business
The perch:before
and perch:after
tags enable you to wrap a region with mark-up that will only be displayed if the region has content.
This tips explains how to use the words
and chars
attributes to create excerpts.
Sometimes, when outputting a multiple item region, it’s useful to be able to number the items. This can be achieved with perch_item_index
.
The perch:help
tag gives you the ability to add instructional information, images and even video to any administration form in Perch.
The help attribute for template tags enables the developer to provide help next to individual form fields in the admin area.
The perch_item_first
and perch_item_last
special ID values can be used to identify the first and last items in a multiple-item template.
There are a few little gems in the Perch templating engine that are easy to miss in the documentation. One such gem is the special ID
value perch_item_odd
.