Forum

Thread tagged as: Question, Blog

perch:help tags in blog post template

Don't seem to work - are they meant to and if not, or are there any plans to implement them?

Many thanks!

Adam Green

Adam Green 0 points

  • 3 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please post your template and Diagnostic Report for help in the forum - thanks!

Woops, sorry! Help is output as expected on standard Perch content templates but just not on the blog for some reason.

Thanks again.

post.html:

<perch:help>
<p>The main content region of a page (or post) is made up of the following blocks, which are a bit like layers on a cake; just click the + sign beside the content type you want to add. Drag and drop the blocks to reorder them on the page.</p> 
</perch:help>
<article class="h-entry post">
    <h1 class="p-name"><perch:blog id="postTitle" type="text" label="Title" help="[ keep short and concise (but descriptive!) as it's used to form the post URL ]" required="true" size="xl autowidth" order="1" /></h1>
    <p class="meta"><svg role="img" class="icon"><title>Published date</title><use xlink:href="#icn-info" /></svg> Posted on <time class="dt-published" datetime="<perch:blog id="postDateTime" type="date" label="Date" time="true" format="Y-m-d H:i:s" order="2" />"><perch:blog id="postDateTime" type="date" time="true" format="F jS, Y" /></time> <perch:if exists="authorGivenName">by <span class="p-author h-card"><perch:blog id="authorGivenName" type="hidden" /> <perch:blog id="authorFamilyName" type="hidden" /></span></perch:if> in <perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes" divider-before="Post category (tags are under Meta and Social tab)"><a href="/blog/category/<perch:category id="catSlug" type="slug" />/" class="p-category"><perch:category id="catTitle" type="smarttext" /></a><perch:if not-exists="perch_item_last">, </perch:if></perch:categories></p>
    <perch:if exists="image"><perch:template path="blog/_blog_image_main.html" rescope="parent" /></perch:if>
    <div class="description e-content">
        <perch:blocks order="8"><perch:template path="blog/_post_blocks.html" rescope="parent" /></perch:blocks>
    </div>
    <perch:if exists="tags_html"><perch:blog id="tags_html" type="hidden" encode="false" /></perch:if>
</article>
<perch:template path="content/_sharing_icons.html" rescope="parent" />
<!--* SUPPRESSED ITEMS *-->
<perch:blog id="postURL" type="hidden" suppress="true" />
<perch:blog id="excerpt" type="textarea" label="Summary / Excerpt" help="[ displayed only on blog listing and archive pages ]" markdown="true" suppress="true" size="l autowidth" divider-before="Post content" order="7" />

Diagnostics:

Perch Runway: 3.0.10, PHP: 5.6.31, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.6.1), perch_forms (1.9)
App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_forms', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/adam/Sites/hiddenireland.com/site/perch
PERCH_CORE: /Users/adam/Sites/hiddenireland.com/site/perch/core
PERCH_RESFILEPATH: /Users/adam/Sites/hiddenireland.com/site/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: hiddenireland.dev
DOCUMENT_ROOT: /Users/adam/Sites/hiddenireland.com/site
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you using multiple blogs or a multiple post templates?

No, single blog and single post template.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Hmm, ok, we'll certainly look into it.

Thanks Drew. If it's any help, I just checked it on a fresh local install, where it's also not working:

Summary information

Perch Runway: 3.0.10, PHP: 5.6.31, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.6.1), perch_forms (1.9.1)
App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_forms', ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/adam/Sites/ballyvolanehouse.ie/site/perch
PERCH_CORE: /Users/adam/Sites/ballyvolanehouse.ie/site/perch/core
PERCH_RESFILEPATH: /Users/adam/Sites/ballyvolanehouse.ie/site/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: ballyvolanehouse.dev
DOCUMENT_ROOT: /Users/adam/Sites/ballyvolanehouse.ie/site
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

But is working on an older Runway 2 site:

SUMMARY INFORMATION

Perch Runway: 2.8.32, PHP: 5.6.31, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_blog (5.0), perch_forms (1.8.3), collection_1 (2.8.32)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/adam/Sites/kellswholemeal.ie/dev/perch
PERCH_CORE: /Users/adam/Sites/kellswholemeal.ie/dev/perch/core
PERCH_RESFILEPATH: /Users/adam/Sites/kellswholemeal.ie/dev/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: kellswholemeal.dev
DOCUMENT_ROOT: /Users/adam/Sites/kellswholemeal.ie/dev
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php