-
- 165 Posts
Dear Members,
Need help with dropMenu.
Sitemap is as under:
----------------
MainWebsite.org
|-home (document)
|-content (folder / id="11")
|-dept1 (folder)
|-dept2 (folder)
|-dept3 (folder)
Requirement: My main menu needs to show dep1, dept2, dept3. Clicking on the department needs to make the link "class=selected" so that it can be styled differently.
My Solution: Use dropmenu (as is) in a "chunk" which in turn is placed on the template. My dropmenu call goes like this [[DropMenu? &menuName=’mainMenu’ &startDoc=11 &levelLimit=1 &topnavClass=’cf’ &titleOfLinks=’pagetitle’ &hereClass=’selected’ &selfAsLink=’true’]]
Problem:
1) The links are shown correctly, but, the title="" attribute is empty (inspite) of filling up ALL the document specific variables.
2) The hereClass value (i.e. "selected") does NOT append to the li/a of the active link.
Where am I going wrong?
Thanks in advance.
-raavi
Don’t use single-quote characters: ’
Use backticks: `
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
- 83 Posts
For problem 2, there are problems with hereclass and setaslink. Look here:
http://modxcms.com/forums/index.php/topic,2609.msg17880.html#msg17880
at the edge of dawn,
you ask yourself if your shadow did follow you down
all night long