-
- 21 Posts
but what I want to do (the picture above) can be done, right?
-
- 21 Posts
will using any of these allow me to stye the second menu differently?
// $topdiv [ true | false ]
// Indicates if the top level UL is wrapped by a containing DIV block
$topdiv = (!isset($topdiv)) ? false : ($topdiv==true);
// $topdivClass [ string ]
// CSS Class for DIV wrapping top level UL
$topdivClass = (!isset($topdivClass)) ? ’topdiv’ : "$topdivClass";
// $topnavClass [ string ]
// CSS Class for the top-level (root) UL
$topnavClass = (!isset($topnavClass)) ? ’topnav’ : "$topnavClass";
Sure, you can set the topdiv differently on the second instance of the menu (for the submenu); that way you can use specific CSS selectors to style the elements of each menu differently, e.g.
#dropMenu1 ul {...}
#dropMenu1 ul li {...}
#dropMenu1 ul li.here {...}
#dropMenu2 ul {...}
#dropMenu2 ul li {...}
#dropMenu2 ul li.here {...}
These options are there so you can approach and structure your CSS however you prefer, but it does assume some knowledge of CSS to make use of it.
Like MODx itself, CSS can be a tricky technology to learn, but once you understand it and become comfortable using it, the results you can achieve are simple amazing.
-
- 21 Posts
What is the correct syntax for integrating the GEtUltimate parent and the $topdivclass?
This is what I am using to call the menu.
[!DropMenu?startDoc=`[[UltimateParent]]`!]
Thanks in advance.
ad