We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32963
    • 1,732 Posts
    Quote from: rthrash at Nov 16, 2005, 02:24 PM

    On the subject of manager templates, I’d like to propose that we move all manager related themes, scriptaculous, media and whatnot to the assets directory.

    Sorry but i don’t think we should. These are sahred core files/features that can be accessed from a single core install.
      xWisdom
      www.xwisdomhtml.com
      The fear of the Lord is the beginning of wisdom:
      MODx Co-Founder - Create and do more with less.
      • 25663 MODX Staff
      • 12,272 Posts
      That’s a very good point, especially when you start thinking about managing multiple sites from a single manager install. Just ignore what I said! wink
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 32963
        • 1,732 Posts
        Hi Everyone,

        I now have the first page (login) working under the new design (ThemeEngine) smiley

        It’s working well with place holders, etc.

        Here’s an example of how the system works:

        $theme = &$modx->manager->theme;
        $theme->initialize();
        
        $theme->includeTemplate('header');
        $theme->includeTemplate('footer');
        $theme->includeTemplate('content','mutate_settings');
        
        $theme->setButton('save','Save');
        $theme->setContent('icon','<img src="[[+themeurl]]logo.gif" />');
        
        $theme->render();


        It’s a complete separation of logic and ui. Note: The ui files can use both the <?php ?> and [[]] tags
          xWisdom
          www.xwisdomhtml.com
          The fear of the Lord is the beginning of wisdom:
          MODx Co-Founder - Create and do more with less.
          • 25663 MODX Staff
          • 12,272 Posts
          Would love to see the test of the code, template and output. That looks so simple!
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 22303 MODX Staff
            • 10,725 Posts
            Very nice Raymond. That will be a very refreshing approach to customizing the manager.
              • 32963
              • 1,732 Posts
              Thanks guys,

              I’ll post the alpha code soon
                xWisdom
                www.xwisdomhtml.com
                The fear of the Lord is the beginning of wisdom:
                MODx Co-Founder - Create and do more with less.