We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32070
    • 87 Posts
    Sorry if this is duplicated - but couldn’t find any real discussion of this topic anywhere.

    I’m weighing migrating a yet-to-be-launched site to ModX 2.0. One of the features I’m setting out to write is a news manager - the site covers information from 60+ offices and I’d like to have a module with which users from each office can log in to add press releases, news stories, etc. I understand how to do this with modules in 1.0 but I don’t want to get stuck writing it again when we shift to 2.0.

    From the wiki:
    The future MODx does not use modules, instead you will be able to add snippets to the manager. This isn’t as flippant as it might initially sound... after all, at their core, modules and snippets both are just bits of PHP code, the distinction is just where they execute (on the front-end for the whole world or within the control panel for manager users).

    So, is there anybody out there who understands how this is going to work in 2.0? I’d love to know so that I can decide which road is best for the time being - and is it going to be a pain to upgrade any module I write from 1.0 to 2.0?

    Thanks.
      Des
      webandflowdesign.com
      • 813 ☆ A M B ☆
      • 326 Posts
      Any chance you’ve discovered the secret here? This may be crucial to my versioning/workflow questions from earlier ;-)
        • 28215
        • 4,149 Posts
        splittingred Reply #3, 16 years ago
        Modules do not exist in Revolution. There is a much more flexible solution, in Custom Manager Pages:

        http://rtfm.modx.com/display/revolution20/Custom+Manager+Pages
        http://rtfm.modx.com/display/revolution20/Custom+Manager+Pages+Tutorial
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
          • 813 ☆ A M B ☆
          • 326 Posts
          Awesome!!! Coincidentally, I’m reading the Revo documentation in its entirety today; I just hadn’t gotten that far down yet!
            • 32070
            • 87 Posts
            This is fantastic news. After first reading about what was coming in Revo, I decided to hold of on building in the news functions that I talked about earlier...

            Since then, it seems like there are several better ways of doing this: http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution has the best approach that I’ve seen so far.

            But I do have a CMP in mind for editing some location data for the same 60+ "jurisdictions." So, this is VERY helpful.

            Now all I need is to learn how to integrate custom tables.......
              Des
              webandflowdesign.com
              • 28215
              • 4,149 Posts
              splittingred Reply #6, 16 years ago
              A few things, guys.

              For custom tables, see:

              http://rtfm.modx.com/display/revolution20/Using+Custom+Database+Tables+in+your+3rd+Party+Components

              Also, you’ll need to familiarize yourself with the database layer in MODx, which is xPDO: http://rtfm.modx.com/display/xPDO20

              You might want to check out some of the existing Extras that use custom tables to see how they do it, such as Quip, Gallery, PackMan, Redirector, Discuss, etc.

              And finally, you can use the modExtra package on git to automatically setup a development environment:
              http://github.com/splittingred/modExtra
              http://rtfm.modx.com/display/ADDON/modExtra
                shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com