Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 15.05.06, 16:49
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!!
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 17.05.06, 23:33
Forum Newbie
 
Registriert seit: 28.11.05
Beiträge: 20

Wäre hilfreich wenn du dein Template posten würdest.
Dann kann ich dir weiter helfen.



P.S. Wozu hast du dein Setup aufgeteilt?
__________________
______________________
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 18.05.06, 07:53
Benutzerbild von _o3_
Forum Aktivist
 
Registriert seit: 29.06.05
Beiträge: 92

automaketemplate?
wozu denn das...habs noch nich genutzt, daher???
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 18.05.06, 10:16
Forum Zuschauer
 
Registriert seit: 01.04.06
Beiträge: 6

hab mal den template code beigefügt!


hier der template code ,sonst habe ich alles aus der template schon vorher gepostet!

HTML-Code:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css" id="internalStyle"> </style> <title>TuS Niederwermelskirchen 07 e.V.</title> <link href="res/stylesheet1.css" rel="stylesheet" type="text/css" /> </head> <body> <table id="main" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="950"  height="1"> <tr> <td id="header_1" width="750" colspan="3" height="111"> &nbsp;</td> </tr> <tr> <td id="menu_1" width="150" height="448"> <div class="menu1-level1-no"><a href="#">Menu item 1</a></div> <div class="menu1-level1-no"><a href="#">Menu item 2</a></div> <div class="menu1-level1-act"><a href="#">Menu item 3 (act)</a></div> <div class="menu1-level2-no"><a href="#">Level 2 item</a></div> <div class="menu1-level2-no"><a href="#">Level 2 item</a></div> <div class="menu1-level2-act"><a href="#">Level 2 item (act)</a></div> <div class="menu1-level1-no"><a href="#">Menu item 2</a></div> </td> <td id="content" width="500" height="448">&nbsp;</td> </tr> <tr> <td id="foote" width="629" height="37" colspan="3">©Tus Niederwermelskirchen 
    07 e.V.</td>
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
  #5  
Alt 18.05.06, 22:28
Forum Newbie
 
Registriert seit: 28.11.05
Beiträge: 20
Blinzeln

Code:
<html> <head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>  
<style type="text/css" id="internalStyle">  </style> 
<title>TuS Niederwermelskirchen 07 e.V.</title> 
<link href="res/stylesheet1.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
<table id="main" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="950" height="1">  
<tr>  
<td id="header_1" width="750" colspan="3" height="111">  &nbsp;</td>  
</tr>  
<tr>  
<td id="menu_1" width="150" height="448">  
<div class="menu1-level1-no"><a href="#">Menu item</a></div>  
<div class="menu1-level1-act"><a href="#">Menu item</a></div>  
<div class="menu1-level2-no"><a href="#">Level 2 item</a></div>  
<div class="menu1-level2-act"><a href="#">Level 2 item</a></div>  
</td>  
<td id="content" width="500" height="448">&nbsp;</td>  
</tr>  
<tr>  
<td id="foote" width="629" height="37" colspan="3">©Tus Niederwermelskirchen 07 e.V.</td>

Das ist dein template. Stecke es in fileadmin/template rein.

Code:
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {

# Read the template file:
content = FILE
content.file = fileadmin/template/index.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
DIV.all = 1
TD.all = 1
}

# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/
}

##############NAVIGATION###################
# 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>
}

# 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

#####################################SUBPARTS#######################
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1

# Substitute the ###content### subpart with some example content:
subparts.content< styles.content.get
subparts.content {

                table = tt_content
	select.orderBy = sorting
	select.where = colPos=0
	select.languageField = sys_language_uid
       }
 
}

# 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
PAGE_TARGET = _top


# Copying the content from TEMPLATE for <body>-section:
page.30 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.30 < temp.headTemplate
Hier ist dein setup.
Vergiss nicht das Click here to edit whole template record
Und dass zu machen: CSS Styled content.;-)

Ist zwar t nicht so sauber aber funktioniert.

Halt erste Hilfe
__________________
______________________

Geändert von alfalive (18.05.06 um 22:31 Uhr).
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
  #6  
Alt 21.05.06, 20:42
Forum Zuschauer
 
Registriert seit: 01.04.06
Beiträge: 6

hähhhhhhhhh


was meinste mit: Vergiss nicht das Click here to edit whole template record

ich weiß nicht genau was du meinst???
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
  #7  
Alt 24.05.06, 15:58
Forum Newbie
 
Registriert seit: 28.11.05
Beiträge: 20

Ich meine den Link "Click here to edit whole template record"

Guck dir die Bilder an.
Hoffe es hilft.
Miniaturansicht angehängter Grafiken
dynam-men-angezeigt-dringend-hilfe-2.jpg  
Angehängte Grafiken
 
__________________
______________________
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


Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
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 anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB 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
Menu wird nicht angezeigt shadowman TemplaVoila 7 24.07.08 12:20
Hilfe, Neuling!! Website wird nicht angezeigt!! thomas123 TYPO3 4.x Fragen und Probleme 5 17.08.07 19:33
HILFE! DRINGEND! Interzugriff auf TYPO3 funktioniert nicht! harald TYPO3 4.x Installation und Updates 2 06.11.06 13:13
Menü wird im FE(browser ) nicht angezeigt!!!HILFE gunsei GMENU, HMENU, TMENU und Co. 0 14.05.06 17:16
Menü wird nicht angezeigt Faircamion GMENU, HMENU, TMENU und Co. 0 09.10.05 17:20


Alle Zeitangaben in WEZ +1. Es ist jetzt 06:59 Uhr.


Powered by vBulletin® Version 3.6.8 Patch Level 2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS