New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • Hi,

    I'm using YAMS to store short multilingual news (which I plan to concatenate with Ditto).

    The news basically use the "pagetitle" and the "content" fields.
    They don't need, "longtitle", "description", "introtext" nor "menutitle".

    Currently, the YAMS tabs display "longtitle_xy", "description_xy", ...,
    where "xy" is the language code. Is there a way to avoid this when the page use the "news" template?

    In yams.mm_rules.inc.php, I found the code below, but it doesn't seem hiding fields for multilingual templates.
    Should I edit $activeTemplateList manually, and possibly edit mm_hideFields too?
      if ( $hideFields )
      {
        // Don't hide the pagetitle because it is used within the modx document tree
        // to identify the page
        mm_hideFields(
          'longtitle,description,introtext,menutitle,content'
          , ''
          , $activeTemplateList
          );


    Thank your for your help.