Skip to content

Instantly share code, notes, and snippets.

View jkshapiro's full-sized avatar

Kivi Shapiro jkshapiro

View GitHub Profile
@jkshapiro
jkshapiro / Language button
Last active December 20, 2015 00:09
Language toggle button in dotCMS that works with URLMapContent. We include both pieces in header.vtl: "Language selection" toward the top of the file and "Language button" in the place where we want the toggle button to show up. See it implemented at http://immobaker.com. The "$text.get(\"header.notranslation\")" piece is so we can show the user…
<!-- Language button code begins here-->
<span class="btn hidden-desktop">
<a class="$classes" href="$href" $otherAttributes>$langName</a>
</span>
<!-- Language button code ends here -->