Skip to content

Instantly share code, notes, and snippets.

@markterpstra
markterpstra / low-variables-magic
Created July 24, 2012 20:52
Low Variables Magic - Nesting, Preparsing, Var Types, etc
First I'm using the Low Variables Single tag to pull in a Textarea var type for the country-specific header,
using the preparse: paramter to pass the {lang} and {segment_1} vars...
<div id="header">
{exp:low_variables:single var="lv_header_{lang}" preparse:lang="{lang}" preparse:segment_1="{segment_1}"}
</div>
Then inside the above {lv_header_{lang}} var, I have the country-specific logo, contact info, nav menu, etc.
For the nav menu, I'm using a Low Variables Pair tag to output a nested Playa var type...