We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4456
    • 9 Posts
    I have a client who is bugged by the fact that the Manager remembers what tab was last active when editing a document. This client wants the General tab to be the selected tab when editing a document, regardless of what tab was active the last time a document was edited.

    So far I have been unable to figure out how this feat is accomplished.

    Could someone please give me a hint?
      • 21257 MODX Staff
      • 730 Posts
      I would like to see this as a new option either in Configuration or for each User. "Remember last document tab".
      My reason is that I am using ManagerManager more to create custom tabs to organize TVs into logical groups, so this gives rise to the situation where you can bring up a document, and tab you were on in the last document doesn’t even exist in the current one. In that case, you actually get no tab displayed and no tab activated.
      I’ll see if I can track down what script is driving this behavior.
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 10487 MODX Staff
        • 1,535 Posts
        Garry Nutting Reply #3, 18 years ago
        I’ll see if I can track down what script is driving this behavior.
        The behaviour is handled within the JS, specifically the WebFXTabPane constructor. For example, in mutate_content.dynamic.php, the tab pane is initialised as:
        tpSettings = new WebFXTabPane( document.getElementById( "documentPane" ) );

        By default, the tab pane will use cookies to remember the last tab selected. So, to force it not to save the last selected tab:
        tpSettings = new WebFXTabPane( document.getElementById( "documentPane" ), false );
          Garry Nutting
          Senior Developer
          MODX, LLC

          Email: [email protected]
          Twitter: @garryn
          Web: modx.com
          • 4456
          • 9 Posts
          Thanks garryn - that works like a charm smiley