We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14404
    • 84 Posts
    Hello guys,

    I’v made a new menu which looks exactly like the modx host, i’v found out 3rd levels doesnt work with the modxhost wayfinder call so thats why i modified this one. Now the problem is that YAMS doesn’t translate all menu-titles, only a few of them :S, so, when i add the following to the wayfinder call(default modxhost chunks) it does translate every menu-title.. but then the javascript for the 2nd and 3rd level won’t show up..

    So maybe any of you guys can help me, and i think its possible in 2 things.

    1. Edit the current menu, so YAMS translates every menu-item

    2. Edit the default modxhost chunks so it fits in my menu and the 2nd and 3rd level will work again.

    My menu:

    Wayfinder call:
    [[Wayfinder? &startId=`0` &level=`3` &parentRowTpl=`cssplay_revParentRow` &cssTpl=`cssplay_ultdrop`]]


    Wayfinder call with modxhost chunks: [[Wayfinder? &startId=`0` &level=`3` &parentRowTpl=`cssplay_revParentRow` &cssTpl=`cssplay_ultdrop` &outerTpl=`mh.OuterTpl` &innerTpl=`mh.InnerTpl` &rowTpl=`mh.RowTpl` &innerRowTpl=`mh.InnerRowTpl` &firstClass=`first` &hereClass=``]]

    Chunks:

    cssplay_revParentRow
    <li><a [+wf.classes+] href="(yams_docr:[+wf.docid+])  " title="[[YAMS? &get=`data` &from=`pagetitle` &docid=`[+wf.docid+]`]]  ">[[YAMS? &get=`data` &from=`menutitle` &docid=`[+wf.docid+]`]] <!--[if IE 7]><!--></a><!--<![endif]-->
    <table><tr><td>
    
    [+wf.wrapper+]
    
    </td></tr></table>
    <!--[if lte IE 6]></a><![endif]-->
    
    </li>


    cssplay_ultdrop
    <link rel="stylesheet" media="all" type="text/css" href="assets/templates/ultimate_drop.css" />
    


    and u probably have the latest modxhost chunks :]

    Thanks for any help
      • 9994
      • 133 Posts
      Mine looks like this:

      <div id="ajaxmenu">
      [[Wayfinder?startId=`0` &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/doc/row.tpl` &activeClass=`active` &hereClass=`hoofdactive` &outerTpl=`mh.OuterTpl` &innerTpl=`mh.InnerTpl` &rowTpl=`mh.RowTpl` &innerRowTpl=`mh.InnerRowTpl` &firstClass=`first` &level=`2`]]
      </div>
        Best CMS eva!
        • 14404
        • 84 Posts
        Thanks, exactly what i needed kiss

        One more thing, right now, menutitle_fr is "[*menutitle_en*]"
        this doesn’t work, and every menutitle has the titel of the page when i currently am.

        Anyone know a solution to this?

        Thanks!
          • 9994
          • 133 Posts
          This is what i have:
          [[YAMS? &get=`data` &from=`menutitle` &docid=`[+wf.docid+]`]]

          Same as u have, but did u checked all your inner, outer etc. chunks?
            Best CMS eva!
            • 14404
            • 84 Posts
            When you leave for example [*menutitle_fr*] in a page, whats the output of that in the menu? when language is on france.
              • 9994
              • 133 Posts
              i get everywhere Home then, probably pics the standard [*menutitle*]

              is your template add in yams? modules/yams/multilanguage templates
                Best CMS eva!
                • 14404
                • 84 Posts
                Yes it is.

                Hmm yes thats the problem, it picks the default menu title of the page where i am right now.. how to fix it? grin
                  • 14404
                  • 84 Posts
                  hmm i have the feeling its being a bug in yams? not sure though
                    • 9994
                    • 133 Posts
                    My server is offline but maybe it is because of some settings of yams.
                    Or u have to use the latest version of yams.
                      Best CMS eva!
                      • 14404
                      • 84 Posts
                      i am using the latest version?