Forum

Thread tagged as: Problem, Runway

Blocks not showing in admin edit page

I've added 6 blocks to a template. For some reason, only the last four are showing up on the edit screen. I've not had this before, but then I've never used repeaters inside blocks before, and am wondering if there's an error associated with that.

Here's the code:

<perch:blocks>

<perch:block label="Text" type="bodytext">
    <perch:content id="body" type="textarea" label="text" editor="tinymce" html="true" />
</perch:block>

<perch:block label="Key benefits" type="bodytext">
        <h3>Key benefits</h3>
        <ul class="benefits">
    <perch:repeater id="bullets" label="bullet points">
        <li><perch:content id="bulletpoint" type="text" label="Bullet point text" /></li>
    </perch:repeater>
        </ul>
</perch:block>

<perch:block label="Bonus benefits" type="bodytext">
    <div class="bonus">
        <h3>Bonus benefits</h3>
        <ul class="bonus-benefits">
    <perch:repeater id="bullets2" label="bullet points">
        <li><perch:content id="bulletpoint" type="text" label="Bullet point text" /></li>
    </perch:repeater>
        </ul>
    </div>
</perch:block>

<perch:block label="right-floated image" type="rightfloat">
<perch:if exists="weblink"><a href="<perch:content id="weblink" type="text" label="Web link (optional)" />" target="_blank" /></perch:if>
    <figure class="feature-image right"><img src="<perch:content id="image" type="image" label="image" />" alt="<perch:content id="alt" type="text" label="alt text" />" />
    <perch:if exists="caption"><figcaption><perch:content id="caption" type="textarea" html="true" label="caption" /></figcaption></perch:if>
    </figure>
<perch:if exists="weblink"></a></perch:if>
</perch:block>

<perch:block label="left-floated image" type="leftfloat">
<perch:if exists="weblink"><a href="<perch:content id="weblink" type="text" label="Web link (optional)" />" target="_blank" /></perch:if>
    <figure class="feature-image left"><img src="<perch:content id="image" type="image" label="image" />" alt="<perch:content id="alt" type="text" label="alt text" />" />
    <perch:if exists="caption"><figcaption><perch:content id="caption" type="text" label="caption" /></figcaption></perch:if>
    </figure>
<perch:if exists="weblink"></a></perch:if>
</perch:block>

<perch:block label="full width image" type="full">
    <perch:if exists="weblink"><a href="<perch:content id="weblink" type="text" label="Web link (optional)" />" target="_blank" /></perch:if>
    <figure class="feature-image full"><img src="<perch:content id="image" type="image" label="image" />" alt="<perch:content id="alt" type="text" label="alt text" />" />
    <perch:if exists="caption"><figcaption><perch:content id="caption" type="text" label="caption" /></figcaption></perch:if>
    </figure>
    <perch:if exists="weblink"></a></perch:if>
</perch:block>

</perch:blocks>

Many thanks

Mallen Baker

Mallen Baker 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please post your Diagnostics Report with each post to the forum - thanks!

No need - I've worked out the problem (three of the types were the same).

Sorry for posting prematurely.