Introduction
Hi folks
Woo hoo! This is the 50th issue of the newsletter. The first one was sent on 20th July 2016. Doesn't time fly! I've learnt a lot about Perch from the Newsletter. I hope you have as well.
Here's a link to the Perchology Newsletter archive.
Want to chat with other Perch users? Have a question about Perch? Join the Perchology Slack Group.
Support the Perchology Newsletter with a small donation. All contributions really help with the costs of this newsletter. Thank you to everyone who has donated, it's much appreciated.
See you next time.
Add-Ons
A list of third party apps and add-ons for Perch CMS
Here's my list of third party add-ons. Well worth a browse to find out how you can do more with Perch!
Code
Perch Template Language Support for Visual Studio Code
This package adds support for Perch template tags inside of HTML files.
How Do I?
Re-indexing Collections
Why re-index? Requirements and/or features may change over a site’s lifespan. You may need to index fields that were set not to be indexed in the past. Or perhaps you’re adding a new field that must be indexed for all Collection items for you to start filtering by it.
Mark Your Debug Messages
When you’re working on complex pages the debug message can get a bit long. It can be useful to mark the start and end of certain calls to check what’s going on.
Check Whether Blocks Contain Content
It can be useful to know whether the Blocks in a template contain any content. The Blocks content may be optional to begin with and knowing whether there is any allows you to conditionally handle things.
Site Examples
Alincourt Roofing
I redesigned the Alincourt Roofing website because the previous version was non-responsive and had no CMS. The new site has a much cleaner, modern design; it uses regular Perch and the Forms add-on.
Perch Documentation
Form validators
When you need to apply custom logic to field validation, you can do that with a custom form validator.
Perch Runway Rewrite rules
Perch Runway uses your web server’s URL rewriting capability to manage incoming page requests. This needs to be configured in order for Runway to serve pages and the URLs you choose.