Oct 13, 2008, 02:08 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1]   Go Down
  Print  
Author Topic: DropMenu's problem  (Read 4398 times)
0 Members and 1 Guest are viewing this topic.
openagate
Committed to MODx
*****
Posts: 768



« on: Jan 28, 2006, 07:59 AM »

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.
Logged

rthrash
Foundation
*
Posts: 9,290



WWW
« Reply #1 on: Jan 28, 2006, 08:18 AM »

Currently, that is not possible. Sorry!
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
openagate
Committed to MODx
*****
Posts: 768



« Reply #2 on: Jan 28, 2006, 08:47 AM »

Thanx for a sorry...

Sadness has stolen a quietness from my heart:(

hope, this problem will be solved in the future;)
Logged

Kunal Kapoor
Full Member
***
Posts: 145


Effective, Functional, Standards Compliant


WWW
« Reply #3 on: Jan 28, 2006, 08:50 AM »

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!  Grin
Logged

Kunal Kapoor
Technical Director
Limesharp Internet Limited - Effective, Functional, Standards Compliant

IRC Nick: KingKoopa
Skype ID: KingKoopa16
sottwell
Documentation Team
*
Posts: 8,157



WWW
« Reply #4 on: 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

Code:
if ($itm && !$selfAsLink && ($child['id'] == $modx->documentIdentifier)) {

to

Code:
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.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Kunal Kapoor
Full Member
***
Posts: 145


Effective, Functional, Standards Compliant


WWW
« Reply #5 on: Jan 28, 2006, 09:14 AM »

Thanks for that. Works a treat!  Cheesy
Logged

Kunal Kapoor
Technical Director
Limesharp Internet Limited - Effective, Functional, Standards Compliant

IRC Nick: KingKoopa
Skype ID: KingKoopa16
mikedfunk
Jr. Member
*
Posts: 1


« Reply #6 on: Feb 14, 2006, 12:15 PM »

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!
Logged
MadeMyDay
Moderators
*
Posts: 817



WWW
« Reply #7 on: Mar 30, 2006, 11:26 AM »

lol, I should read the forum first Wink

Just posted it here:

http://modxcms.com/bugs/task/323

Marc
Logged

davidm
Marketing & Design Team
*
Posts: 6,659


The best way to predict the future is to invent it


WWW
« Reply #8 on: Jun 14, 2006, 06:10 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 Grin !

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 Smiley
I wish I had seen this thread before losing a few hours over this Tongue
« Last Edit: Jun 14, 2006, 08:15 AM by davidm » Logged

blog.nodeo.net : Pour un web libre, moderne et ouvert! :: | ! Nouveau ! Les forums modxcms.fr : Participez à l'élaboration du site MODx francophone ! ! Nouveau ! :.

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)

Réalisations sous MODx : nodeo.net | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | sworld.com | soleil.info
 et 3 autres en cours de réalisation Smiley
The Man Can!
Testers
*
Posts: 282



WWW
« Reply #9 on: Jun 21, 2006, 09:03 PM »

Thanks a LOT Susan for the fix Grin !

Ditto on that, Susan. Sliding doors working like a charm now.
Logged

Need MODx Ecommerce? Try FoxyCart!
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!