Forum

Thread tagged as: Question, Blog

Perch blocks not appearing in blog app backend

Hello

I'm trying to implement blocks for use in the blog app however my text area isn't visible in the backend. My diagnostics report and template code are below.

Diagnostics


Perch: 2.8.32, PHP: 5.6.27, MySQL: 5.5.32, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32), perch_blog (5.0), perch_mailchimp (3.0.1) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_mailchimp' ); PERCH_LOGINPATH: /perch PERCH_PATH: /home/beecrown/public_html/perch PERCH_CORE: /home/beecrown/public_html/perch/core PERCH_RESFILEPATH: /home/beecrown/public_html/perch/resources Image manipulation: GD PHP limits: Max upload 128M, Max POST 128M, Memory: 768M, Total max file upload: 128M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes HTTP_HOST: beecrowned.com DOCUMENT_ROOT: /home/beecrown/public_html REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Post.html code

<article class="h-entry">
    <h1>
        <a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="p-name">
            <perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" />
        </a>
    </h1>
    <p class="meta">
        <time class="dt-published" datetime="<perch:blog id="postDateTime" type="date" label="Date" time="true" format="Y-m-d H:i:s" divider-before="Publishing" />">
            <perch:blog id="postDateTime" type="date" time="true" format="%d %B %Y" /> 
        </time>


        <perch:categories id="categories" set="blog" label="Categories" display-as="checkboxes">
            <a href="/blog/category/<perch:category id="catSlug" type="slug" />" class="p-category <perch:category id="catTitle" type="slug" />">
                <perch:category id="catTitle" type="text" />
            </a>
        </perch:categories>

    </p>

    <perch:blocks>
        <perch:block>
            <perch:blog id="postDescHTML" type="textarea" label="Post" order="3" editor="ckeditor" textile="false" html="true" markdown="true" size="xxl autowidth" required="true" />
        </perch:block>
    </perch:blocks>
</article>

<perch:blog id="excerpt" type="textarea" label="Excerpt" markdown="true" order="4" suppress="true" size="s" />
<perch:blog id="image_thumb" type="image" width="480" height="309" crop="true" suppress="true" label="Post Thumbnail" order="2"/>
<perch:blog id="image_thumb" type="image" width="480" height="309" crop="true" suppress="true" label="Post Thumbnail"/>
<perch:blog id="image_thumb" type="image" width="64" height="59" crop="true" suppress="true" label="Post Thumbnail" />

Any ideas?

Chima Nwosu

Chima Nwosu 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Your perch:block tags are missing required attributes like type and label.

https://docs.grabaperch.com/templates/blocks/

Gah! Always the little things!! Thanks Drew