Dec 04, 2008, 12:36 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: DropMenu missing $subnavClass  (Read 1884 times)
0 Members and 1 Guest are viewing this topic.
tonegolf71
Jr. Member
*
Posts: 6


« on: May 30, 2006, 09:05 AM »

I've been playing around with how DropMenu looks on a site and noticed that when you specify $subnavClass in the snippet call (as per one of the examples) that it does nothing with the variable.

Upon looking into the snippet it is missed out from the "// Configuration parameters" section, and is therefore not being picked up if someone specifies it in the snippet call.

In the "// Initialize" section it in fact sets the value to a zero length string (i.e $subnavClass = ''; )

I assume this will be put in at some point but think it might confuse people to have it in the examples and not yet functioning.

I have put it in myself but am unsure if there will be any knock on effects of doing so, all I did was...

add the following below the "// $subdivClass [ string ]" block in the Configuration parameters section:

Code:
// $subnavClass [ string ]
// CSS Class for nested UL elements
$subnavClass = (!isset($subnavClass)) ? 'subnav' : "$subnavClass";

and I also commented the line that set $subnavClass to nothing in the initialize section.

That seemed to work fine.  Undecided

Logged
davidm
Marketing & Design Team
*
Posts: 6,777


The best way to predict the future is to invent it


WWW
« Reply #1 on: Jun 12, 2006, 09:43 AM »

Surprised nobody picked up on this thread, since it's quite helpful !

Thanks for this I'll try it out Smiley
Logged

.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! 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 : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net
tonegolf71
Jr. Member
*
Posts: 6


« Reply #2 on: Jun 13, 2006, 07:59 AM »

No problem!  Cool

This doesn't seem to have had any adverse effects for me, but let me know if you come across anything...ta!

I have been playing around with a version of the "manager" navigation menu for the front-end that can be generated via dropmenu (slightly altered) and with certain stylesheet additions. What I have works, but could do with being reworked before releasing for all.

I assume dropmenu is still under development, I'll have to look around the forums as I don't want to reinvent the wheel if things like this are already nearly done.  Tongue
« Last Edit: Jun 13, 2006, 09:00 AM by tonegolf71 » Logged
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!