Skip to content

Instantly share code, notes, and snippets.

View nilsmielke's full-sized avatar

Nils Mielke nilsmielke

View GitHub Profile
@clivewalker
clivewalker / If-different-block-type.html
Last active November 1, 2018 12:06
With Perch CMS, you can use conditional tags with the different attribute to compare _block_type. Credit: Hussein Al Hammad. Original question by Jay George: "Any idea if it's possible to change the output of a block depending on which block procedes it? e.g. if a 'heading' block is followed by another 'heading' block, the output is changed?"
<perch:if different="_block_type">
This is a different block type
</perch:if>