We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5004
    • 62 Posts
    Hi, thank you for this plugin smiley

    I have tried to use mm_createTab (v. 03.2.1 - MODx 09.6.3)
    mm_createTab('Categories', 'mycats');
    but the result is in the upper part a white area with the Document content visible in the bottom.

    Errore: unterminated string literal
    File sorgente: http://www.zanettimoda.it/manager/index.php?a=27&id=1
    Riga: 754, Colonna: 27
    Codice sorgente:
    $('div#'+mm_lastTab).after(' 


    Other functions like mm_hideTabs or mm_renameTab work correctly.

    Another question. Is it possible to see the Document content only in the General tab?

    Thank you Checco
      • 5004
      • 62 Posts
      Resolved smiley

      I follow this from MarcelF in the "tabs.inc.php" (line 130)

      $empty_tab = ’
      <div class="tab-page" id="tab’.$id.’">
      <h2 class="tab">’.$name.’</h2>
      <div class="tabIntro" id="tab-intro-’.$id.’">’.$intro.’</div>
      <table width="’.$width.’" border="0" cellspacing="0" cellpadding="0" id="table-’.$id.’">
      </table>
      </div>
      ’;

      to:
      $empty_tab = ’<div class="tab-page" id="tab’.$id.’"><h2 class="tab">’.$name.’</h2><div class="tabIntro" id="tab-intro-’.$id.’">’.$intro.’</div><table width="’.$width.’" border="0" cellspacing="0" cellpadding="0" id="table-’.$id.’"></table></div>’;

      Without any linebreaks!