We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44661
    • 31 Posts
    Hi all,
    I am wondering whether i actually need or not to use an extra (eg get resource field) to do the following for a multilingual site (hence with a different context for each language version) :

    In the BreadCrumb tpl
    <ul>
     <li><a href="[[++site_url]]">[[++site_name]]</a></li>
    [[+crumbs]]
    </ul>
    

    i would like to replace [[++site_name]] with the menu title of the site_start resource which is different upon the cultureKey or language selected. [[++site_start]] yields the correct resource id of the site_start for each context.

    What would be the easiest solution to get inside the BreadCrumb tpl chunk the field "menutitle" by site_start id ?
    Thanks
      • 3749
      • 24,544 Posts
      Just create a site_name Context Setting in each context and it will be used automatically with the code you have.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 44661
        • 31 Posts
        Thanks Bob for the fast reply !
        I have used :
        <li><a href="[[++site_url]]">[[getResourceField? &id=`[[++site_start]]` &field=`menutitle`]]</a></li>
        together with getResourceField extra

        but must say I prefer your solution, much simpler !