Ok, I’ve got your menus straightened out. Now as far as the color scheme goes, what do you have in mind?
Calls DropMenu twice, once for the top menu:
[[DropMenu?levelLimit=`1`]]
And again for the side menu:
[!DropMenu?startDoc=`[[SetDoc]]`!]
The [!...!] style is necessary to get the inner snippet parsed properly.
SetDoc is very simple:
// SetDoc - sets docID to 0 if it is site_start
$id = ($modx->documentIdentifier == $modx->config['site_start']) ? 0 : $modx->documentIdentifier;
return $id;
If a top menu item has no submenu, it won’t show anything, except for the Home item, which will display the main menu. If you don’t want it to do that, you want it empty also if it has no submenu, call the second DropMenu like this:
[[DropMenu?startDoc=`[*id*]`]]