Last active
November 1, 2018 12:06
-
-
Save clivewalker/757b87f04e31138ce9d91d7a2a7926e9 to your computer and use it in GitHub Desktop.
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?"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<perch:if different="_block_type"> | |
This is a different block type | |
</perch:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment