We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Blog

Blog specifying a different post page


I think I've asked this before, but I can't find the thread (maybe it was the old forum).

I've got a situation where the blog app is being used as a knowledgebase area and the client wants a new area which I can filter with new categories and feed them on the new page OK, but how do I go about specifying a different blog master to use?

For example, knowledgebase is using the default post.php which I have edited to suit, how do I get the following to specify a different php file;

        'template' => 'my-template.html',
        'count' => '6',
        'sort' => 'postDateTime',
        'sort-order' => 'DESC',
        'category' => array('entertainment'),


<div class="col-sm-6 col-md-6 featured-block">
    <div class="featured-block-image">
        <perch:if exists="image2"><img src="<perch:blog id="image2" type="image"   />" class="img-responsive" alt="<perch:blog id="postTitle" />" /></perch:if>
    <div class="featured-block-category">
        <h3><perch:categories id="categories" set="blog">
            <perch:category id="catTitle" type="text" />
    <div class="featured-block-background">
        <div class="featured-block-info">
            <h2><a href="<perch:blog id="postURL" />" rel="bookmark" class="entry-title"><perch:blog id="postTitle" /></a></h2>
            <a href="<perch:blog id="postURL" type="hidden" />">&gt; READ</a>


    <perch:if exists="paging">
        <div class="paging">
            Page <perch:blog id="current_page" /> of <perch:blog id="number_of_pages" />
            <perch:if exists="not_first_page">
                <a href="<perch:blog id="prev_url" encode="false" />">Previous</a>
            <perch:if exists="not_last_page">
                <a href="<perch:blog id="next_url" encode="false" />">Next</a>

My Diagnosics

Perch: 3.0.8, PHP: 5.4.45, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.8), assets (3.0.8), categories (3.0.8), perch_blog (5.6)
App runtimes: <?php $apps_list = array( 'perch_blog', );
PERCH_PATH: /Users/hoops78/Documents/colour measure/root/perch
PERCH_CORE: /Users/hoops78/Documents/colour measure/root/perch/core
PERCH_RESFILEPATH: /Users/hoops78/Documents/colour measure/root/perch/resources
Image manipulation: GD
PHP limits: Max upload 128M, Max POST 128M, Memory: 128M, Total max file upload: 128M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: colourmeasure
DOCUMENT_ROOT: /Users/hoops78/Documents/colour measure/root
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Wayne Hooper

Wayne Hooper 6 points

  • 3 years ago
Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Hello Wayne,

With Perch you can only use one master post template which is always post.html, but you can have multiple post types. With multiple post types, the master template (and edit form) for all posts will still be the same post.html, but you can display each post type differently using different templates.

If you need a different master template for each post type (i.e. different edit form for each post type), I think you need to use Runway with which you can create multiple blogs. Using Runway each blog can have a different master template.

Thanks Hussein

I was looking for changing the master post template (the php one). I thought I did this in Perch once, before Runway came along, but I can't find my post about it... maybe I didn't do it...

Drew McLellan

Drew McLellan 2638 points
Perch Support

Instead of using <perch:blog id="postURL" type="hidden" />, form the link to be whatever page you want to link to.