Hello,
I passed trought this tread but can't find something that works for me. Any help would be appreciated.
I have a migxmultilang site and I'm trying to make a Breadcrumb work (I tried with BreadCrumb and pdoCrumbs)
When I use pdoCrumbs I get HTTP ERROR 500 on the front end.
I have to say, I also have multiple context who are not all multilangual.
the call
[[!pdoCrumbs?
&tpl = `breadCrumbTpl`
&tplCurrent = `breadCrumbcurrentTpl`
&hideSingle=`1`
&includeTVs=`mml_pagetitle`
&loadModels=`migxmultilang`
&prepareSnippet = `mmlTranslatePdoToolsRow`
]]
breadCrumbTpl:
<a href="[[+link]]">[[+mml_ICM_longtitle:default=`[[+longtitle]]`]]</a>
breadCrumbcurrentTpl:
[[+mml_ICM_longtitle:default=`[[+longtitle]]`]]
when I use BreadCrumb
I managed to get almost a translation breadcrum working.
the Call :
[[!mmlCache?
&element=`BreadCrumb`
&id=`[[*id]]`
¤tCrumbTpl=`@INLINE <li><strong>[[+mml_ICM_longtitle:default=`[[+longtitle]]`]]</strong></li>`
&containerTpl=`@INLINE <ol class="col-md-12 breadcrumb"><li><a href="[[++site_url]]" title="[[++cultureKey:is=`fr`:then=`Accueil`:else=`Home`]]">[[++cultureKey:is=`fr`:then=`Accueil`:else=`Home`]]</a> - [[+id]]</li>[[+crumbs]]</ol>`
&homeCrumbTpl=`@INLINE <li><a href="[[+link]]">[[+mml_ICM_longtitle:default=`[[+longtitle]]`]]</a> - [[+id]]</li>`
&showHomeCrumb=`0`
&includeTVs=`mml_ICM_longtitle`
&prepareTVs=`1`
&processTVs=`1`
&tvPrefix=``
&prepareTVs=`1`
&loadModels=`migxmultilang`
&prepareSnippet = `mmlTranslatePdoToolsRow`
]]
has you can see in the
containerTpl I manualy made it translate the Home, if I don't do that I get only the last child translated (the current page).
like this :
Home >> Recherche scientifique >> Students
has you can see, only the (manualy translated home) and the current page are translated, else they stay in french.