We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42562
    • 1,145 Posts
    Ah, I found a better way, quite readable.
    I exported a test property set to file.js, opened it in an online json editor, and voila! Awesomeness.
    I can delete from there, edit, copy and paste, and then import back to override the plugin's propSet.

      TinymceWrapper: Complete back/frontend content solution.
      Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
      5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
      • 3749
      • 24,544 Posts
      Were you trying to create a property set or set the default properties of the snippet? Those are two different things. For the default properties of the snippet, your array is too shallow -- it's an array of arrays:

      $plugProperties = array(
          'My Setting One' => array(
              'name' => 'My Setting One',
              'description' => 'Description for setting one',
              'type' => 'textfield',
              'value' => 'value1',
              'area' => 'area1'
          ),
      
          'My Setting Two' => array (
              'name' => 'My Setting Two',
              'description' => 'Description for setting two',
              'type' => 'textfield',
              'value' => 'value2',
              'area' => 'area1'
          ),
            
      );
      



        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
        • 42562
        • 1,145 Posts
        Thanks this works,

        I thought I tried something like that...because I remember going to your myComponent example config to steal this pregnant onion pattern, but I also remember that one making me cry, I must have got something terribly wrong then.

        If anyone is wondering how to use 'type' => 'list', yup you figured it, it's another child array
          TinymceWrapper: Complete back/frontend content solution.
          Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
          5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.
          • 3749
          • 24,544 Posts
          If anyone is wondering how to use 'type' => 'list', yup you figured it, it's another child array

          LOL, I was going to add that to the example, but thought it was complicated enough. 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