The Problem of such plan:
I want to use the DropMenu several times on one page in different places. Herewith in each event with different input: maxlevels and startdoc.
But there is determined restrictions for the request to database.
Is there some way to cause the DropMenu only once? And in rest events to work with an array which already got by DropMenu.
-
MODX Staff
- 12,272 Posts
Currently, that is not possible. Sorry!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thanx for a sorry...
Sadness has stolen a quietness from my heart:(
hope, this problem will be solved in the future;)
I found another little issue but isn’t really major:
If you were to call the dropmenu snippet, and select &selfAsLink=`0` and hereClass=`current`, this works fine. However, if you had &selfAsLink=`1`, &hereClass=`current` no longer works.
Like I said, it wasn’t a major issue!
-
☆ A M B ☆
- 24,524 Posts
If you’re using the sliding-doors tab image technique, it is a big problem. You need both the li and the a elements for styling, plus you need the "here" class for styling the current link. I fixed it (sort of...) by changing line 259
if ($itm && !$selfAsLink && ($child['id'] == $modx->documentIdentifier)) {
to
if ($itm && ($child['id'] == $modx->documentIdentifier)) {
This way it outputs the "here" class whether it’s a link or not. Now both can be styled nicely using the sliding-doors technique. I’m not sure how this will affect nested links; I’m only using it to style single-level horizontal tab style menus.
Thanks for that. Works a treat!
Thank you, I was having this exact problem. I wanted the link to be styled as an active tab and this would have been a pain without an a element. Many thanks!
Quote from: sottwell at Jan 28, 2006, 09:11 AM
If you’re using the sliding-doors tab image technique, it is a big problem. You need both the li and the a elements for styling, plus you need the "here" class for styling the current link. I fixed it (sort of...) by changing line 259 (...) This way it outputs the "here" class whether it’s a link or not. Now both can be styled nicely using the sliding-doors technique. I’m not sure how this will affect nested links; I’m only using it to style single-level horizontal tab style menus.
Thanks a LOT Susan for the fix

!
I was going crazy with this...
I’ll soon report about the nested links, since I have been having a big problem to have a 3-level menu working as expected...
Edit : It works A-OK with my 3-level menu
I wish I had seen this thread before losing a few hours over this
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id