Issue 78
Hi folks
I don't have any "insider knowledge" but I'm hoping for news about the future of Perch in the next few weeks. Perch lead developer Drew M alluded to this in a post in the forum. Fingers crossed!
I've been working on a medium-sized website using Perch Runway and including Collections for Case Studies and for Customer Comments. Check out the Pipit app link below for displaying similar Collection items. It's great!
In the same project, I'm also using the perch:related
template tag to assign customer comments to a specific case study. More about Relationships between content in the Perch Docs section below.
See you next time.
News
Next steps for Perch?
I hope to be able to confirm some exciting news about the next steps for Perch, but unfortunately it's not quite there yet.
Add-ons
Tinkerwell Driver
Tinkerwell is is a code editor to tinker with PHP code. Here's a Perch driver for it which is useful when building Perch add-ons and for Perch development. For example, you can quickly inspect how the data is returned when you skip templating.
How Do I?
Display similar Collection Items from the same category
Yow want to display similar items on a Collection item's detail page. Here's how to do that using pipit_category_get_path()
with the Pipit app.
Simplify data definition in templates
Separating edit and display templates and using the suppress
attribute in a content region template helps make templates easier to maintain.
Site Example
Complete Care Air
No jQuery only vanilla JavaScript and Alpine on this site.
In The Docs
Relationships between content in Perch Runway
The perch:related
template tag enables you to relate items of content around your site to the contents of a Collection.
Other Links
Fade and animate items into view while scrolling
Here's a great video from Kevin Powell about the Intersection Observer API. The what!? Well, it's a built-in browser API for animating items on scroll. No external libraries. A few lines of JavaScript and a couple of CSS classes are all you need. Very useful!