Liste der Anhänge anzeigen (Anzahl: 2)
Grafik Parent Menu Aktiv wenn Child aktiv ist
Hallo
Ich benutze für meine Parent Menu Punkten ein Bild (mit mod hit_graphical_navigation) und der Child Menu Punkten sind text.
Jetzt wollte ich das wenn der Child aktiv sind auch der parent aktiv ist.
Ich habe mal der Template File von modul gechecked aber komm dar nicht aus :-(
File: nav_graphicalnavi_activenuninkable.tpl
PHP-Code:
<?php
// Navigationsgrafiken laden
$this->import('Database');
$x=0;
foreach($this->arrData['items'] as $NaviItem) {
$objPage = $this->Database->execute('SELECT nopic,ropic,actpic FROM tl_page WHERE title="' . $NaviItem['title']. '"');
$strNOPic = $objPage->nopic;
$strROPic = ($objPage->ropic!='') ? $objPage->ropic : $strNOPic;
$strACTPic = ($objPage->actpic!='') ? $objPage->actpic : $strROPic;
array_insert($this->arrData['items'][$x],0,array('nopic'=>$strNOPic,'ropic'=>$strROPic,'actpic'=>$strACTPic));
$x++;
}
?>
<div class="graphicalnavigation">
<ul class="<?php echo $this->level; ?>">
<?php foreach ($this->items as $item): ?>
<?php if ($item['isActive']): ?>
<li class="active
<?php if ($item['class']): ?> <?php echo $item['class']; ?><?php endif; ?>">
<?php if($item['actpic']): ?>
<img src="<?php echo $item['actpic']; ?>" alt="<?php echo $item['link']; ?>"
title="<?php echo $item['pageTitle']; ?>"
class="active
<?php if($item['class']): ?><?php echo $item['class']; ?><?php endif;?>" />
<?php else: ?>
<span class="active
<?php if ($item['class']): ?> <?php echo $item['class']; ?><?php endif; ?>"><?php echo $item['link']; ?>
</span>
<?php endif; ?>
<?php echo $item['subitems']; ?>
</li>
<?php else: ?>
<li<?php if ($item['class']): ?> class="<?php echo $item['class']; ?>"<?php endif; ?>>
<a href="<?php echo $item['href']; ?>" title="<?php echo $item['pageTitle'] ? $item['pageTitle'] : $item['title']; ?>"<?php if ($item['class']): ?> class="<?php echo $item['class']; ?>"<?php endif; ?>
<?php if ($item['accesskey'] != ''): ?> accesskey="<?php echo $item['accesskey']; ?>"<?php endif; ?>
<?php if ($item['tabindex']): ?> tabindex="<?php echo $item['tabindex']; ?>"<?php endif; ?>
<?php if ($item['nofollow']): ?> rel="nofollow"<?php endif; ?> onclick="this.blur();<?php echo $item['target']; ?>">
<?php if($item['nopic']): ?><img src="<?php echo $item['nopic']; ?>" alt="<?php echo $item['link']; ?>"
onmouseover="this.src='<?php echo $item['ropic']; ?>';" onmouseout="this.src='<?php echo $item['nopic']; ?>';" />
<?php else: ?>
<?php echo $item['link']; ?>
<?php endif; ?></a>
<?php echo $item['subitems']; ?>
</li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
Was muss ich hier ändern das der Parent Menu Items auch Aktiviert sind?
Beilage der Bilder:
Bild 1.png: So ist jetzt
Bild 2.png: So sollte es sein:
Und ich entschuldigen mir vor meine Deutsch.....bin Holländer :-)
Bitte ??? Wie kann mir Hilfen??
Bitte Wie kann mir Hilfen mit dieses Problem??
Grüsse Rogier