We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8548
    • 104 Posts
    Hi all,

    I'm trying to get a specific field, I have migxmultilang with multiple context (site).
    I often use fastfield when I need to get a targeted field for specific ressource on a template, I'm trying to make work with migxmultilang but ut only returns me the default language field.

    I have FR and EN site : default language is FR.
    here's my code :
    [[[[#8.tv.mml_longtitle:default=`#8.longtitle`]]]]


    is there something missing for it to get the mml_longtitle value for that specific id or is there an other way to do this with migxmultilang?

    cheers

    This question has been answered by Egam. See the first response.

      • 8548
      • 104 Posts
      Is migxmultilang compatible or usable with fastfield? that's possibly my problem...

      of is there somme other way to get (for example) the longtitle of ONE specific resource to display in a section of a template?
      • discuss.answer
        • 8548
        • 104 Posts
        Ok, I've found a way to do this - for those who might be looking for something similar.

        here's the code :
        						[[!pdoMenu? 
        							&startId=`0`
        							&resources=`8`
        							&includeTVs=`mml_longtitle`
        							&prepareTVs=`1`
        							&tvPrefix=``
        							&loadModels=`migxmultilang`
        							&prepareSnippet = `mmlTranslatePdoToolsRow`
        							&tplOuter=`@INLINE [[+wrapper]]`
        							&tpl=`icm.footer.title.tpl`
        						]]

        Important part : is to NOT put the &tpl code INLINE, it must be in a chunk for it to get the right information (resource).