Dec 04, 2008, 12:24 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  
Pages: [1]   Go Down
  Print  
Author Topic: DropMenu here class variation  (Read 2538 times)
0 Members and 1 Guest are viewing this topic.
hgw
Member
**
Posts: 62


WWW
« on: May 26, 2006, 02:20 AM »

Hello, I just found a solution and maybe it helps for somebody too:

DropMenu creates two .here li elements: when one element has a child element and this child element is the current page, it gets the here class as well as the parent element.

As I didn't want in my case to set the parent element to the here class I changed the snipped an commented out this part:

Code:
// find the parent docs of the current "you-are-here" doc
// used in the logic to mark parents as such also
/* parent not to become  "you-are-here" element
while ($parentID != $siteMapRoot && $parentID != 0) {
$parent = $modx->getParent($parentID, 0);
if ($parent) {
$parentID = $parent['id'];
$activeLinkIDs[] = $parentID;
} else {
$parentID = 0;
}
}
*/

Logged
cino
Jr. Member
*
Posts: 35


« Reply #1 on: Jun 06, 2006, 07:09 AM »

Wonderful! It works!!
Logged
davidm
Marketing & Design Team
*
Posts: 6,777


The best way to predict the future is to invent it


WWW
« Reply #2 on: Jun 06, 2006, 07:18 AM »

funny you post this, I was just about to look into it, I had this problem with a 3 depth level DropMenu...

Thanks a lot !
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
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!