Einzelnen Beitrag anzeigen
  #1  
Alt 15.05.06, 17:49
gunsei gunsei ist offline
Forum Zuschauer
 
Registriert seit: 01.04.06
Beiträge: 6
Frage

dynam. Menü wird nicht angezeigt??? dringend hilfe!!


Hallo ,

ich habe mir mit hilfe vom tutorium Moderne Templateerstellung, Teil1 (doc_tut_templsel_de) eine template erstellt. das klappt auch schon , nur hab ich das problem das mein menü im browser nicht angezeigt wird, wenn ich es dynamsich werden lasse. weil wenn ich nur die html vorlage aufrufen lasse über das template erscheint alles,!!???? erst nach dem ich content und menü berich bestimme zeigt er nur noch den header und den content bereich.

hier mal mein Code :
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:
# Main TEMPLATE cObject for the HEAD

temp.headTemplate = TEMPLATE

temp.headTemplate {

    # Feeding the content from the Auto-parser to the TEMPLATE cObject:

template =< plugin.tx_automaketemplate_pi1

    # Select only the content between the <head>-tags

workOnSubpart = DOCUMENT_HEADER

}

# Default PAGE object:

page = PAGE

page.typeNum = 0

# 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
dann habe ich das template in 3 teile aufgeteilt :
1. +ext: Auto-Parser Plugin
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:
# Configuring the Auto-Parser for main template:

plugin.tx_automaketemplate_pi1 {

    # Read the template file:

content = FILE

content.file = fileadmin/template/template2.html

    # Here we define which elements in the HTML that

    # should be wrapped in subpart-comments:

elements {

BODY.all = 1

BODY.all.subpartMarker = DOCUMENT_BODY

HEAD.all = 1

HEAD.all.subpartMarker = DOCUMENT_HEADER

HEAD.rmTagSections = title

TD.all = 1

}

    # Prefix all relative paths with this value:

relPathPrefix = fileadmin/template/

}
2.+ext: Menu 1
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:
# Menu 1 cObject

temp.menu_1 = HMENU

  # First level menu-object, textual

temp.menu_1.1 = TMENU

temp.menu_1.1 {

    # Normal state properties

NO.allWrap = <div class="menu1-level1-no"> | </div>

    # Enable active state and set properties:

ACT = 1

ACT.allWrap = <div class="menu1-level1-act"> | </div>

}

  # Second level menu-object, textual

temp.menu_1.2 = TMENU

temp.menu_1.2 {

    # Normal state properties

NO.allWrap = <div class="menu1-level2-no"> | </div>

    # Enable active state and set properties:

ACT = 1

ACT.allWrap = <div class="menu1-level2-act"> | </div>

}

3. +ext: Main TEMPLATE cObject
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:
# Main TEMPLATE cObject for the BODY

temp.mainTemplate = TEMPLATE

temp.mainTemplate {

    # Feeding the content from the Auto-parser to the TEMPLATE cObject:

template =< plugin.tx_automaketemplate_pi1

    # Select only the content between the <body>-tags

workOnSubpart = DOCUMENT_BODY

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

subparts.menu_1 < temp.menu_1

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

subparts.content < styles.content.get

}

weiß jemand weiter???

danke für die hilfe!!
Mit Zitat antworten