Skip to content

Instantly share code, notes, and snippets.

@makbeta
Created November 30, 2012 02:28
Show Gist options
  • Save makbeta/4173404 to your computer and use it in GitHub Desktop.
Save makbeta/4173404 to your computer and use it in GitHub Desktop.
Luminate CMS: Add a list of categories as URL parameters
<t:if test="topic.length > 0">
<t:list id="topic">
<t:if test="index == 1">
<t:set id="tops" value="concat(tops, '?topics=')" />
<t:set id="tops" value="concat(tops, name)" />
</t:if>
<t:else>
<t:set id="tops" value="concat(tops, '&topics=')" />
<t:set id="tops" value="concat(tops, name)" />
</t:else>
</t:list>
</t:if>
<a href="index.html?${tops}">See similar articles</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment