Created
September 24, 2013 09:10
-
-
Save benjaminrau/6682246 to your computer and use it in GitHub Desktop.
Insert Asset if it current PageUid is not contained in settings.pagesToExclude.
settings.pagesToExclude is a comma-separated list of PageUids like "1,5,6"
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
{v:page.info()->v:var.set(name:'currentPage')} | |
{settings.pagesToExclude->v:iterator.explode()->v:var.set(name:'pagesToExcludeArr')} | |
<f:if condition="{v:if.iterator.contains(needle:currentPage.uid,haystack:pagesToExcludeArr)->v:if.var.isNull()}"> | |
<v:asset.script name="test"></v:asset.script> | |
</f:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment