Ich bin nicht mehr ganz im Thema drinne und es ist fast WE ... 😉 , aber du kannst alles machen, was du auch immer willst:
Funzt nicht mit SimDocs? Ändere das PHP-Script dementsprechend, sodass nicht die index.php?irgendwas sondern irgendwas.html abgefragt wird ...
... ebenso wird es gehen, dass du diesen "NoLinks" eine andere CSS, bzw. eine direkte Style-Angabe mitgibst ...
... mit etwas Phantasie und PHP geht das alles 😉
Hm, ich stehe jetzt auch vor diesem Problem und habe mich strikt an Commodores Anleitung gehalten.
Leider funtioniert es bei mir nicht, oder liegt es jetzt an Version 3.8.1 ?
Gruß,
photek
@photek keine Ahnung habe dasselbe Problem. Habe auch die 3.8.1 Version!!
tmenu_layers.php unter media/scripts/
if ($this->WMisSub) {
// Fix für Verteilerseiten
// Im Setup werden die PIDs der Seiten angegeben,
// die als reine Verteilerseiten dienen ...
$noLinkItems = $this->mconf["doNotLinkIt"];
$noLinkItems = explode(",", $noLinkItems);
foreach ($noLinkItems as $var) {
if ($this->I["uid"] == $var) $this->I["linkHREF"]["HREF"] = '#';
}
$event="GL_stopMove('".$this->WMid."');";
$this->I['linkHREF']['onMouseover']='GL_doTop(\''.$this->WMid.'\', \'Menu'.$this->WMid.$key.'\');'.$this->I['linkHREF']['onMouseover'];
// Added 120802; This means that everytime leaving a menuitem the layer should be shut down (and if the layer is hit in the meantime it is not though).
// This should happen only for items that are auto-hidden when not over and possibly only when a hide-timer is set. Problem is if the hide-timer is not set and we leave the main element, then the layer will be hidden unless we reach the layer before the timeout will happen and the menu hidden.
if (t3lib_div::intInRange($this->mconf['hideMenuWhenNotOver'],0,600) && $this->mconf['hideMenuTimer']) {
$event.='GL_resetAll("'.$this->WMid.'");';
}
$this->I['linkHREF']['onMouseout'].=$event;
}
Im template im constants teil:
# PID's der Seiten welche im Menu nicht verlinkt werden sollen
DoNotLink = 4,3,190,270,306
Im Setup:
subparts.TOPNAV = HMENU
subparts.TOPNAV.special = directory
#subparts.TOPNAV.special = list
subparts.TOPNAV.special.value = 1
#subparts.TOPNAV.excludeUidList = 1,2,3
subparts.TOPNAV {
wrap = <div id="menu"> | </div>
entryLevel = 0
1 = TMENU
1 {
expAll=1
noBlur = 1
# Links welche keinen Link im Menu haben sollen, unter Constants definiert
doNotLinkIt = {$DoNotLink}
#doNotLinkIt.wrap = <ul id="donotlink"> | </ul>
wrap = <ul id="menuList" class="adxm"> | </ul>
NO {
wrapItemAndSub = <li> | </li>
}
}
Könnte hier jemand helfen. Ich nörgle schon die längste Zeit an diesem Problem rum. Habe schon wirklich alles versucht
Natürlich geht das nicht, da ich es mit einem TMENU versuche und nicht mit dem TMENU_LAYERS. Gibt es eine gleiche Lösung einfach mit dem TMENU??
Kann mir irgend jemand helfen??