![]() |
| | LinkBack | Themen-Optionen | Thema bewerten | Ansicht |
|
#1
| ||||
| ||||
Hallo Leute! Ich bin noch recht frisch mit Typo3 unterwegs. Und bräuchte dringend eure Hilfe. Ich habe mit rlmp_tmpselector versucht zwei templates anzusprechen. Könnte mal jmd. mein Code durchforschten und Fehler ausmerzen??? Vielen Dank schon mal # Templateselecter plugin.tx_rlmptmplselector_pi1.templatePathMain = fileadmin/templates/BITE_Template/main/ plugin.tx_rlmptmplselector_pi1.templatePathSub = fileadmin/templates/BITE_Template/sub/ page.meta.DESCRIPTION = BITE Business Managers page.meta.KEYWORDS = Internet, Homepage, Typo3 page.includeCSS { file2 = fileadmin/templates/BITE_Template/css/{$tpl}_text.css file3 = fileadmin/templates/BITE_Template/css/layout_t3.css } #page.includeLibs.tmenu_layers = fileadmin/templates/BITE_Template/scripts/tmenu_layers.php page.headerData.1 = TEXT page.headerData.1.value ( <!--[if IE]> <style type="text/css"> @import url(fileadmin/templates/BITE_Template/css/style_ie.css); </style> <![endif]--> ) # <script type="text/javascript" src="fileadmin/templates/BITE_Template/scripts/menu.js"></script> #) page.bodyTag = <body> page.shortcutIcon = fileadmin/templates/BITE_Template/img/favicon.ico ### Default content template temp.objPageMainContent = TEMPLATE temp.objPageMainContent { template = FILE template.file = fileadmin/templates/BITE_Template/main/layout1.html workOnSubpart = DOKUMENT subparts { INHALT < styles.content.get MENU_TOP < temp.menuTop MENU_OBEN < temp.MenuOben MENU_LINKS < temp.MenuLinks ROOTLINE < tmp.breadcrump INHALT_LINKS < styles.content.getLeft # INHALT_LINKS.select.pidInList = 2 INHALT_RECHTS < styles.content.getRight SITENAME = TEXT SITENAME < temp.seitenTitel SUCHE < temp.suche TITEL_RAND < temp.getHeaderBorder INHALT_RAND < styles.content.getBorder SITE = TEXT SITE.value = {$sitename} SITESUBTITLE = TEXT SITESUBTITLE.value = {$sitenamesubtitle} # LAST_UPDATE < styles.content.lastUpdate SPRACHE < temp.language COPYRIGHT < temp.copyright } marks { PAGE_UID = TEXT PAGE_UID.field = uid SUCHLABEL = TEXT SUCHLABEL = {$eingabevalue} HEADERTITLE = TEXT HEADERTITLE.value = {$headertitle} HEADERTITLEZWEI = TEXT HEADERTITLEZWEI.value = {$headertitleh3} LOGINUSERLABEL = TEXT LOGINUSERLABEL.value = {$loginuserlabel} LOGINPASSLABEL = TEXT LOGINPASSLABEL.value = {$loginpasslabel} LOGINFORGOTLABEL = TEXT LOGINFORGOTLABEL.value = {$loginforgotlabel} } } ### Content with two columns temp.objMainContent2 = TEMPLATE temp.objMainContent2 { template = FILE template.file = fileadmin/templates/BITE_Template/sub/layout2.html workOnSubpart = DOKUMENT subparts { INHALT < styles.content.get MENU_TOP < temp.menuTop MENU_OBEN < temp.MenuOben MENU_LINKS < temp.MenuLinks ROOTLINE < tmp.breadcrump INHALT_LINKS < styles.content.getLeft # INHALT_LINKS.select.pidInList = 2 INHALT_RECHTS < styles.content.getRight SITENAME = TEXT SITENAME < temp.seitenTitel SUCHE < temp.suche TITEL_RAND < temp.getHeaderBorder INHALT_RAND < styles.content.getBorder SITE = TEXT SITE.value = {$sitename} SITESUBTITLE = TEXT SITESUBTITLE.value = {$sitenamesubtitle} # LAST_UPDATE < styles.content.lastUpdate SPRACHE < temp.language COPYRIGHT < temp.copyright } } ### The Startpage #temp.objPageMainStart = TEMPLATE #temp.objPageMainStart { #template = FILE #template.file = fileadmin/templates/BITE_Template/start.html #workOnSubpart = ... #} ### Configurating the Template Selector temp.objMainContent = TEMPLATE temp.objMainContent { tx_rlmptmplselector.title = Layout1 tx_rlmptmplselector.imagefile = fileadmin/templates/BITE_Template/img/pageContentMain.gif template = COA template.10 < temp.objPageMainContent } temp.objMainContent2 = TEMPLATE temp.objMainContent2 { tx_rlmptmplselector.title = Layout2 tx_rlmptmplselector.imagefile = fileadmin/templates/BITE_Template/img/pageContentMain2Cols.gif template = COA template.10 < temp.objMainContent2 } #temp.objMainStart = TEMPLATE #temp.objMainStart { #tx_rlmptmplselector.title = Hauptvorlage - Startseite #tx_rlmptmplselector.imagefile = fileadmin/templates/BITE_Template/img/page_main_start.gif #template = COA #template.10 < temp.objPageMainStart } ### Templateselector Core Definitions page = PAGE page.typeNum = 0 plugin.tx_rlmptmplselector_pi1 { templateObjects.main { 10 < temp.objMainContent 20 < temp.objMainContent2 #30 < temp.objMainStart } templateObjects.sub { } defaultTemplateObjectMain = 10 defaultTemplateObjectSub = 20 inheritMainTemplates = 0 inheritSubTemplates = 0 } |
|
#2
| |||
| |||
| Hi Typ3, wäre einfacher, wenn Du einen Tipp geben würdest, was evt. nicht funktioniert oder wo Du einen Fehler vermutest. Gruß, Lissy |
|
#3
| ||||
| ||||
| Ja das ist es eben! Keine Ahnung! Wenn ich dieses setup lade bekomme ich nur eine weiße leere page. |
|
#4
| |||
| |||
| Hi Typ3, irgendwo mußt Du das ganze noch in ein Pageobjekt laden. Wenn ich richtig sehe, wird bei Dir tatsächlich nichts ausgegeben auf der Seite. So in der Art: page.10 < plugin.tx_rlmptmplselector_pi1 Ansonsten -wenn sonst niemand auf Anhieb das Problem sieht- dann müßtest Du mal mit einem einfacheren Aufbau beginnen und streng nach Doku anfangen und dann erst Deine Sonderwünsche einbauen. Ich selbst habe den Selector so laufen, daß nur die HTML-Templates unterschiedlich sind. In die Suparts wird jeweils der gleiche Inhalt gelesen. Die sind bei Dir auch identisch für alle drei Templates und nur die Marker sind unterschiedliche (oder hab ich was übersehen)? Da könntest Du den Code übersichtlicher gestalten, wenn Du diesen Bereich nur 1x definierst und dann jeweils einbindest. Ich könnte Dir mein Beispiel schicken wenn Du sonst gar nicht weiter kommst. Aber ich habe auch noch den Auto-Parser (automaketemplate) mit eingebaut. Gruß, Regina |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Newbie-Probleme bei Extensions | hansedoku | TYPO3 4.x Fragen und Probleme | 1 | 04.01.08 00:48 |
| rlmp_tmplselector | TheWong | TYPO3 4.x Fragen und Probleme | 0 | 05.09.07 14:30 |
| rlmp_tmplselector keine Auflistung von Templates | tanja | Alle anderen Extensions | 7 | 03.09.07 11:39 |
| Newbie Probleme mit Menü | tinitus | GMENU, HMENU, TMENU und Co. | 1 | 07.12.05 13:39 |
| Problem mit rlmp_tmplselector | Zerberus | Alle anderen Extensions | 1 | 13.07.05 14:56 |