Forum

Thread tagged as: Addons, Runway, Blog

Runway Blog Preview

How do I add the bit mentioned in the blog app documentation for previews when using Perch Runway. It says:

For previews to work you need to include the below function at the top of your Blog Post page (so post.php in our example files):

perch_blog_check_preview();

The previews seem to be working fine as I have added the route to the post page:

blog/[blogslug:s]/[preview:preview]

but as the docs mention it I feel I should add it?

Greg Riley

Greg Riley 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics report?

Here it is.

Perch Runway: 2.8.31, PHP: 7.0.8, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_blog (5.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/greg/Sites/techapp/trunk/perch
PERCH_CORE: /Users/greg/Sites/techapp/trunk/perch/core
PERCH_RESFILEPATH: /Users/greg/Sites/techapp/trunk/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: techapp
DOCUMENT_ROOT: /Users/greg/Sites/techapp/trunk
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Drew McLellan

Drew McLellan 2638 points
Perch Support

Looks like you're up to date with Runway and Blog, so no, you shouldn't need to do that.