We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9550
    • 123 Posts
    I can not seem to be able to get a Property Set to override the default settings of a plugin settings. I have just tried to do this with TinyMCE and CodeMirror in Modx 2.0.0-pl. Basically, using the "Add Property Set" option and then modifying the copied settings seems to do absolutely nothing, even after using "clear cache." Yet, modifying the defaults works just fine. Is there an additional step I am missing to lock in or select the new property set?
      • 3749
      • 24,544 Posts
      Load the plugin for editing and look at the System Events tab. There’s a field there to set which property set will be used.
        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
        • 9550
        • 123 Posts
        You’re kidding me! Where?

        I just see a whole schwack of Events with checkboxes. Four of them being OnPropertySetSave/Remove/BeforeSave/BeforeRemove

        But I don’t think that’s gonna do it.
          • 3749
          • 24,544 Posts
          I beg to differ. wink

          Try double-clicking in the "Properties" column (just to the right of the Group Name -- if any) for any events that are checked.

            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
            • 1774
            • 34 Posts
            I’m having the same problem, in my setup there are no system events checked by default… I checked four, and changed the property set to the one I want, but it still isn’t working… which system events need to be checked so that the tinymce editor uses my custom property set and not the default one?

            The four system events I have checked are:
            OnRichTextEditorInit, OnRichTextEditorRegister, OnBeforeManagerPageInit, OnRichTextBrowserInit
              Brandon Booth
              Freelance MODx specialist for hire: site construction, template conversion, snippet customization.
              Lucidgreen.net Websites made simple.
              • 10702
              • 107 Posts
              Quote from: anselm1109 at Aug 11, 2010, 08:07 AM

              I’m having the same problem, in my setup there are no system events checked by default… I checked four, and changed the property set to the one I want, but it still isn’t working… which system events need to be checked so that the tinymce editor uses my custom property set and not the default one?

              The four system events I have checked are:
              OnRichTextEditorInit, OnRichTextEditorRegister, OnBeforeManagerPageInit, OnRichTextBrowserInit

              Hi anselm1109,

              did you figure out how to implement your own property set? I am looking for this, too...

              Thanks a lot!
              Gerdi
                • 3749
                • 24,544 Posts
                I think I misunderstood the OP’s question.

                AFAIK, there’s no way yet to specify a property set for a plugin to use because there’s no plugin tag to specify it in. Attaching the property set to the plugin doesn’t do it because you can attach more than one and the plugin wouldn’t know which one to use.

                You can create (and automatically attach) a property set on the plugin’s properties tab, but until there’s a way to specify it (or the plugin code provides a setting for it) the property set won’t be used. I don’t have TinyMCE installed so I don’t know if it has a config option for specifying a property set, but I doubt it.

                That means that for now, you need to edit the default properties, which unfortunately will probably be overwritten whenever you update the plugin.

                The System Events that are checked have nothing to do with the properties used, BTW, they just determine which system events will trigger the execution of the plugin code. Checking ones not already checked when the plugin is installed will just slow things down and, possibly cause trouble.

                  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
                  • 28215
                  • 4,149 Posts
                  Quote from: BobRay at Oct 09, 2010, 06:04 PM

                  I think I misunderstood the OP’s question.

                  AFAIK, there’s no way yet to specify a property set for a plugin to use because there’s no plugin tag to specify it in. Attaching the property set to the plugin doesn’t do it because you can attach more than one and the plugin wouldn’t know which one to use. You can create (and automatically attach) a property set on the plugin’s properties tab, but until there’s a way to specify it (or the plugin code provides a setting for it) the property set won’t be used. I don’t have TinyMCE installed so I don’t know if it has a config option for specifying a property set, but I doubt it.

                  Incorrect, you can attach Property Sets to specific Events that the Plugin is registered to - just double-click on the Property Set column when assigning System Events to that Plugin on the plugin edit screen (2nd tab).
                    shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                    • 3749
                    • 24,544 Posts
                    I stand corrected. That’s good news (but more rewriting for me). wink
                      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
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      You know, eventually you’re going to have to release the book, then start a second edition. If you keep rewriting and waiting until you’re all caught up, you’ll never release. Revo is just too fast-moving a target.
                        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