I'm trying to setup a list to choose the language in yams. I started from the flags sample
http://rtfm.modx.com/display/ADDON/YAMS+Language+Flag+List and stripped out the image tags, adding the html5 nav tag.
So I have this my main call:
[[YAMS? &get=`repeat` &beforetpl=`@CODE:<nav id="langnav"><ul class="langlist">` &repeattpl=`otherLangItemTpl` ¤ttpl=`currentLangItemTpl` &aftertpl=`@CODE:</ul></nav>`]]
the otherLangItemTpl:
<li class="yams_lang_(yams_id)"><a href="(yams_docr)" lang="(yams_tag)" xml:lang="(yams_tag)" dir="(yams_dir)" title="(yams_name_in_(yams_id+))">(yams_name)</a></li>
and finally the currentLangItemTpl:
<li class="yams_lang_(yams_id) yams_current">(yams_name)</li>
.
Now I have three language set up, but this is the rendered html:
<nav class="yams_lang_en yams_current" i<li="">English
<li class="yams_lang_it">
<a lang="it" title="" dir="ltr" xml:lang="it" href="http://mysite.com/it/index.html">italiano</a>
</li>
<li class="yams_lang_fr">
<a lang="fr" title="(French)" dir="ltr" xml:lang="fr" href="http://mysite.com/fr/index.html">francaise</a>
</li>
</nav>
where you can see that all the beginnning part is messed up: the ul tag is completely missed, and the first (current) li ended up in the nav tag.
Is it a misstyping error?
any help?
thank you
[ed. note: andrearicci last edited this post 14 years, 10 months ago.]