Forum
Blocks missing additional block element
I am trying out Drew's Block Template, have tried to modify it but wanted to add a Large Image Block. When I check in the admin area I see Text : Pull Quote : Medium Image : Inline Image but the additional Block Large Image is not showing. Clearly I have missed something? By the way the other elements work brilliantly.
<perch:blocks>
<perch:before>
</perch:before>
<perch:block type="text" label="Text">
<perch:content id="text" type="textarea" markdown="true" editor="markitup" size="s" label="Text" />
</perch:block>
<perch:block type="pullquote" label="Pull quote">
<blockquote>
<perch:content id="quote" type="textarea" markdown="true" size="xs" label="Quote" />
<cite>— <perch:content id="cite" type="smarttext" label="By" /></cite>
</blockquote>
</perch:block>
<perch:block type="image" label="Large image">
<figure>
<img src="<perch:content id="LargeImage" type="image" width="600" label="LargeImage" />" class="img-responsive" />
<figcaption><perch:content id="caption2" type="smarttext" label="Caption" /></figcaption>
</figure>
</perch:block>
<perch:block type="image" label="Medium image">
<figure>
<img src="<perch:content id="MediumImage" type="image" width="400" label="MediumImage" />" class="img-responsive" />
<figcaption><perch:content id="caption" type="smarttext" label="Caption" /></figcaption>
</figure>
</perch:block>
<perch:block type="inlineimage" label="Inline image">
<figure class="inline <perch:content id="class" type="select" options="Pull left|pull-left,Pull right|pull-right" label="Alignment" order="2" />">
<img src="<perch:content id="image" type="image" width="200" density="2" label="Image" order="1" />" class="img-responsive" />
</figure>
</perch:block>
<perch:after>
</perch:after>
</perch:blocks>
You've reused the same
type
attribute.Thanks I knew it was something stupid... works brilliantly now