DESIGNfromWITHIN/Flexibility — Issue #22: Add multiple (sub) categories during install
Author: DESIGNfromWITHIN
Created: 2011-12-17 14:28:27+00:00
State: open

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.