<![CDATA[ Is there a way to hide MODx default fields in YAMS tabs ? - MODX Community Forums]]> https://forums.modx.com/thread/?thread=98384 <![CDATA[Is there a way to hide MODx default fields in YAMS tabs ?]]> https://forums.modx.com/thread/98384/is-there-a-way-to-hide-modx-default-fields-in-yams-tabs#dis-post-532039
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
      , ''
      , $activeTemplateList

Thank your for your help.]]>
Jul Sep 22, 2015, 12:28 PM https://forums.modx.com/thread/98384/is-there-a-way-to-hide-modx-default-fields-in-yams-tabs#dis-post-532039