DESIGNfromWITHIN / Flexibility

Flexibility - Fully functional MODX Revolution website. Quickstart projects by creating a fully working MODX Revolution website with just one package. Need MODX Revolution 2.2+
http://flexibilitymodx.com/
Other
35 stars 6 forks source link

Add multiple (sub) categories during install #22

Open DESIGNfromWITHIN opened 12 years ago

DESIGNfromWITHIN commented 12 years ago

Flexibility chunks, snippets and TV's need to have sub categories. How do I get these in my package install?

$category= $modx->newObject('modCategory');
$category->set('id',1);
$category->set('category','Flexibility');

Installs only the main category.