Skip to content

Instantly share code, notes, and snippets.

@drewm
Created February 10, 2015 17:13
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewm/c81a0b36686dda988547 to your computer and use it in GitHub Desktop.
Save drewm/c81a0b36686dda988547 to your computer and use it in GitHub Desktop.
Perch 2.8 Blocks template example
<perch:blocks>
<perch:before>
<div class="row">
<div class="col-md-6 col-md-offset-3">
</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>&mdash; <perch:content id="cite" type="smarttext" label="By" /></cite>
</blockquote>
</perch:block>
<perch:block type="image" label="Big image">
<figure class="full">
<img src="<perch:content id="image" type="image" width="1600" label="Image" />" 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="360" density="2" label="Image" order="1" />" class="img-responsive" />
</figure>
</perch:block>
<perch:after>
</div>
</div>
</perch:after>
</perch:blocks>
@devcut
Copy link

devcut commented Jan 5, 2018

Hi, it's possible to add perch:before and perch:after in perch:block ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment