Antwort
 
LinkBack Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 25.04.06, 22:00
Forum Zuschauer
 
Registriert seit: 25.04.06
Alter: 24
Beiträge: 2

2end Level Menü mit Typo3-Script


Hallo mein Typo3-Script schafft es leider aus mir unerklärlichen Gründen nicht, das sec_navigation (einen zweiten Menü-Block) in der richtigen Ebene (Level) darstellen. Ich hab schon einiges rumprobiert, hat aber leider nicht geklappt.
Bin Newbee und hoffe, dass mir da einer helfen kann.
Vielen Dank!

Typo3-Version: 3.8
Website: http://www.delattre.de

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
# top_navigation cObject
temp.top_navigation = HMENU
# First level menu-object, textual
temp.top_navigation.1 = TMENU
temp.top_navigation.1 {
# Normal state properties
NO.allWrap = <li> | </li>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <li id="current"> | </li>
ACT.stdWrap.htmlSpecialChars = 1
}

# sec_navigation cObject
temp.sec_navigation = HMENU
## Second level menu-object, textual
temp.sec_navigation.1 = TMENU
temp.sec_navigation.1 {
entryLevel = 2
# Normal state properties
NO.allWrap = <li> | </li>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <li id="current2"> | </li>
ACT.stdWrap.htmlSpecialChars = 1
}

# Page Last Updated:
temp.lastupdate = TEXT
temp.lastupdate {
date = d.m.Y
}

# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/template/template.html
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY

subparts.update < temp.lastupdate

# Substitute the ###menus### subpart with dynamic menu:
subparts.top_navigation < temp.top_navigation
subparts.sec_navigation < temp.sec_navigation

# Substitute the ###content### subpart with some example content:

subparts.content < styles.content.get

}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
template = FILE
template.file = fileadmin/template/template.html
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.stylesheet = fileadmin/template/default.css
page.config.doctype = xhtml_trans

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate

config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #2  
Alt 25.04.06, 23:09
Benutzerbild von Lasergraph
Forum Aktivist
 
Registriert seit: 07.01.06
Ort: Unterentfelden(CH)
Beiträge: 55

Hallo potowotoumi,

bist du sicher das der EntryLevel = 2 richtig ist?

der erste Level=0 der zweite=1 der dritte=2.

gruss Lasergraph
__________________
Die ungelösten Probleme halten einen Geist lebendig und nicht die gelösten.
zitat: Erwin Guido Kolbenheyer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #3  
Alt 26.04.06, 06:42
Benutzerbild von lutz
TYPO3forum.net Donater
 
Registriert seit: 19.08.04
Beiträge: 579

1) entryLevel = 1
2) entryLevel ist eine Eigenschaft von HMENU (immer schön die TS-Referenz lesen...;-) )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
  #4  
Alt 27.04.06, 21:31
Forum Zuschauer
 
Registriert seit: 25.04.06
Alter: 24
Beiträge: 2

Vielen Dank!
so hats wunderbar geklappt:

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
# sec_navigation cObject
temp.sec_navigation = HMENU
temp.sec_navigation {
entryLevel = 1
## Second level menu-object, textual
1 = TMENU
1 {
# Normal state properties
NO.allWrap = <li> | </li>
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <li id="current2"> | </li>
ACT.stdWrap.htmlSpecialChars = 1
}
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
1-Level Menü in 2 Bereiche geteilt DarkNemesis GMENU, HMENU, TMENU und Co. 1 08.05.08 12:32
2 level menu but not nested. opxy TYPO3 4.x Fragen und Probleme 0 04.04.08 15:43
Menu Level 2 weg sirride TYPO3 4.x Fragen und Probleme 24 19.10.07 10:49
Trennung zwischen Menü Level 1 und 2 labskaus GMENU, HMENU, TMENU und Co. 2 15.08.06 15:40
Menu darstellung pro level anpassen madmongo GMENU, HMENU, TMENU und Co. 3 10.03.06 07:18


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:13 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0