1. for richtext - fields, try inputTVtype: richtext
2. what is your pdoMenu - snippet - call?
1. Thanks, richtext works perfect.
2. my snippet-call:
[[!pdoMenu?
&startId=`1`
&hideSubMenus=`true`
&includeTVs=`mml_pagetitle`
&prepareTVs=`1`
&tvPrefix=`tv.`
&loadModels=`migxmultilang`
&prepareSnippet=`mmlTranslatePdoToolsRow`
&tpl=`mml_MenuRowTpl`
]]
if you have
in mml_MenuRowTpl
try:
&includeTVs=`mml_pagetitle,mml_menutitle`
this should include the translated mml_menutitle - value and translate it also to [[+menutitle]]
Thanks Bruno, this solves half of my problem.
This is the mml_MenuRowTpl:
<li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>[[+wrapper]]</li>
The Menu changes now the language using the menu title but it does not change the path to the resource - meaning it still links to for example /de instead of /fr.
since the [[+link]] is a relative url without /de or /fr
the linking to the correct lang-path /de or /fr
is handled by the base href
<base href="[[!++site_url]]" >
should change from yourdomain/de/ to yourdomain/fr/, as soon as you switch the language.
Doesn't it?
I had the base href cached and changed it now to uncached. But this seems not to have an influence. The menu links still don't change.
do have it running online, so I could have a quick look into it live.
you had
cached.
you need everything inside the template-chunk, which can change between languages to call uncached.
needs to be
mmlCache does cache everything once for each language.
Cached tags are cached only once for all languages by modx and have then the same value on each language
If you need absolute uncached parts, put them in tags like that:
Great! Thanks for your fast and competent help.