We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28042 ☆ A M B ☆
    • 24,524 Posts
    Working with 2.3, things are a bit different. There is no "Action" form. So how would one go about creating, say BobRay's sample "cheatsheet" CMP?

    I've begun by creating a couple of folders, assets/components/products and core/components/products. These I specified in the paths when creating a "products" namespace.

    {Edit} Found exactly what I'm looking for! http://rtfm.modx.com/display/revolution20/Custom+Manager+Pages+in+2.3

    -------------------------------------
    For those who may be interested, I'm creating a CMP to automatically create a heavily customized Articles container intended for handling "products" and all of their support files. The CMP will have form fields for various details about the product, such as its name and what its parent should be in the Resource Tree. There will be a main menu item "New Product", as well as a button in the dashboard.

    [ed. note: sottwell last edited this post 13 years, 11 months ago.]
      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
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Well, that didn't work. Gives me an error
      Could not find action file at: controllers/default/index.php
      Followed the sample at http://rtfm.modx.com/display/revolution20/Custom+Manager+Pages+in+2.3

      {Edit} well, no surprise there, welcome.class.php works a lot better than welcome.inc.php! [ed. note: sottwell last edited this post 13 years, 11 months ago.]
        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
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        There needs to be something said about the name of the class. For example, the sample in the documentation has
        class MycmpWelcomeManagerController extends modExtraManagerController {

        So is it necessary to have it like this, NamespaceActionManagerController? Anything else appears to just produce the WSoD. No errors, though.
          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
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          And how about using the extra's lexicon in the Smarty templates?
            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
            • 38713
            • 91 Posts
              Twitter @alexmercenary
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              If you follow exactly as it's written it does work.

              1. Create Namespace mycmp
              2. Create menu item My CMP
              3. Create files in the correct directory structure.
                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
                • 38713
                • 91 Posts
                Quote from: sottwell at Dec 28, 2013, 08:41 AM
                If you follow exactly as it's written it does work.

                Yes you're right! It does! Haha. Whoops, sorry Susan.

                On a brief separate note, Have you managed to get MIGx working with the latest dev build of Modx Revo 2.3 like you mentioned here https://github.com/Bruno17/MIGX/issues/107.

                I downloaded the latest build of MIGx manually uploaded it to the components folder (as it isn't in the package browser ) and installed, however when navigating to the MIGx setup upgrade page under apps there is just a blank page.

                Thanks
                  Twitter @alexmercenary
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  We did get one version working some time ago, but I am not sure if it would still work at this point. I know it's been mentioned before, but I forget exactly which version it was, and if it's even available now.

                  The current Revo 2.3 I'm playing with doesn't even have a Components menu in the menu managment section, so I would guess that add-ons that are depending on that may have problems getting installed.
                    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
                    • 38713
                    • 91 Posts
                    Ok, that makes sense. I think the previously mentioned and noted fix no longer stands due to further development of the MODx 2.3 core unfortunately.
                      Twitter @alexmercenary
                      • 3749
                      • 24,544 Posts

                      Quote from: sottwell at Dec 28, 2013, 09:21 AM
                      The current Revo 2.3 I'm playing with doesn't even have a Components menu in the menu managment section, so I would guess that add-ons that are depending on that may have problems getting installed.

                      Are you sure? The Components menu won't show up unless there are menu items under it.
                        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