![]() |
| | LinkBack | Themen-Optionen | Thema durchsuchen | Thema bewerten | Ansicht |
|
#1
| ||||||||||
| ||||||||||
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. +ext: Auto-Parser Plugin Typoscript-Code:
Typoscript-Code:
3. +ext: Main TEMPLATE cObject Typoscript-Code:
weiß jemand weiter??? danke für die hilfe!! |
|
#2
| |||
| |||
| Wäre hilfreich wenn du dein Template posten würdest. Dann kann ich dir weiter helfen. P.S. Wozu hast du dein Setup aufgeteilt?
__________________ ______________________ |
|
#3
| ||||
| ||||
| automaketemplate? wozu denn das...habs noch nich genutzt, daher??? |
|
#4
| |||
| |||
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"> </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"> </td> </tr> <tr> <td id="foote" width="629" height="37" colspan="3">©Tus Niederwermelskirchen 07 e.V.</td> |
|
#5
| |||
| |||
| 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"> </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"> </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 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). |
|
#6
| |||
| |||
was meinste mit: Vergiss nicht das Click here to edit whole template record ich weiß nicht genau was du meinst??? |
![]() |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
| |
Ä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 |