We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3582
    • 12 Posts
    I’ve been looking at ModX for quite a while and have been very intrigued and interested because of it’s seeming extensibility and flexibility (I’ve used other CMS’s but I’m never happy when I need to hack at them to get them to do something a bit differently).
    Anyway, I’m not very well-versed in PHP or web programming in general, which is why I think a lot of the documentation has gone over my head, but I’m actually considering learning more PHP in order to try to use ModX. But I have a general question about the possibility of running custom applications within ModX.

    For example, say I want to use ModX to build a site for a local sports league and I’d like to be able to have a "league manager" application to run within the site (for setting up teams, seasons, stats, player profiles, entering scores and game reports, keeping track of standings, etc.). How exaclty would be the best way to implement this? Would it be better (if possible) to code the application in PHP and integrate it into the ModX manager? Or would the ModX framework be capable of doing something like this and then use modules, snippets, chunks, etc. to piece it together? I hope this makes sense.
    Thanks.
      • 25663 MODX Staff
      • 12,272 Posts
      MODx is a great rapid-prototyping platform that just so happens to have enough muscle behind the scenes to scale very well. 096 is good, 097 (preview soon) will be far better, 1.0 should be incredible. smiley

      I’ll leave the technical details to those more capable of explaining the whys and hows. Unless someone has a pre-baked solution in another platform, my choice is almost always MODx, or a solutions that fits well with MODx like http://foxycart.com ... but then again I am admittedly a bit biased.
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 3582
        • 12 Posts
        Okay --- I appreciate your response but I’m not really sure where that leaves me. I guess you did say you would "leave the technical details to those more capable of explaining the whys and hows."
        Can anyone else just simply say "yes" or "no" to whether I can develop custom apps as the one I described using ModX or if it’s possible to just integrate homegrown ones? I’m not looking for an extensive howto guide. Thanks
          • 22098
          • 218 Posts
          we think MODx is great for developing custom apps that need a basic CMS-like framework behind it. With MODx as your framework you don’t need to develop the basic security/user-management, content-editing and -publishing anymore, and it has a nice friendly interface.

          Olaf
            • 25663 MODX Staff
            • 12,272 Posts
            Yes.
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Check out the database management modules on my sottwell.com demo site (log in to the manager as guest user and run the modules). You can also see the module tutorial on the same site.
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 3582
                • 12 Posts
                Very cool. Thanks for the info. I’ll check it out!

                -T
                  • 3749
                  • 24,544 Posts
                  Quote from: blitz at Jun 27, 2007, 09:56 AM

                  Okay --- I appreciate your response but I’m not really sure where that leaves me. I guess you did say you would "leave the technical details to those more capable of explaining the whys and hows."
                  Can anyone else just simply say "yes" or "no" to whether I can develop custom apps as the one I described using ModX or if it’s possible to just integrate homegrown ones? I’m not looking for an extensive howto guide. Thanks

                  I’ve played with this a little bit when adapting Scform, (an open source, third-party contact form that hides email addresses from prying eyes) for use with MODx. I initially just installed the thing and put a link to it in one of the pages in the MODx site. That worked ok but, of course, the contact page didn’t look like the rest of the site. Then I made the pages that show up to users into snippets and put calls to those snippets into new documents on the MODx site. That actually went pretty quickly and looked great. I’m using it now and it works great but it doesn’t really do things the MODx way (more about that in a minute).

                  Actually, part of the problem is that MODx is so flexible that I could think of a number of different ways to do what I wanted and had a hard time deciding which was best in the long run. The hard part is that doing things the MODx way supposes that you can set parameters (i.e. options) in the snippet call. This is harder to do since the program you’re integrating won’t be set up that way. It will probably have a "config" file somewhere that contains the variables. Converting it to a standard snippet in MODx is fairly trivial PHP programming IF the contents of the config file only need to be read once. In the program I’m working on, several different pages read the config file. Still doable but, once again, about 5 different ways to do it and not so trivial programming. I still haven’t decided how I want to do it.

                  (If anyone wants to chime in on this, I’d be grateful -- I’m mainly thinking of either storing the snippet parameter values in the DB using the DB-API or making an array out of them and storing it in a SESSION variable).

                  I will testify that it’s definitely worth using MODx, even if you have to put some effort into adding features to it. Stuff that used to be a page of code (or many pages) is often a single snippet call in MODx. After a relatively short period of adjusting to how MODx works (and bumping into a few quirks like using back-ticks instead of quotes and not leaving spaces around equals signs in snippet calls) I was able to create a full-fledged web site and set up several sub-admins each with their own access areas and capabilities. It was fairly easy for me and unbelievably easy for them. I’m continually amazed by how simple it is to implement changes my users ask for. Someone will ask, "Can you set it up so I can edit the content of the news page?" I log on to the manager and, a couple of clicks later, it’s done.


                  I’d also recommend learning some PHP, though, as you will very likely want to create your own snippets or modify someone else’s somewhere down the line.

                  Bob
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting