Think and wonder
wonder and think.
- Dr. Seuss
Following on from the re=indexing post, here is some code we've used to create blog post entries within Perch CMS
include('perch/runtime.php'); $API = new PerchAPI(1.0, 'perch_blog'); $Posts = new PerchBlog_Posts($API); $Template = $API->get('Template[...]
A quick note on how we've just replaced a missing index on a Perch site belonging to one of our clients.
The script below will load all posts, iterate over them and regenerate the index:
include('perch/runtime.php'); $API = new PerchAPI(1.0, 'perch_blog'); $Posts = new [...]
First of all, a disclaimer: we love the Perch CMS. Due to its flexible nature and ability to retrofit into any design, without the need for following the semantics of a “template language”, we have used it extensively since around 2012. For those who aren’t familiar with Perch, I strongly a[...]