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.
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'
),
);
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.
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.