[TYPO3-german] Auswahl vom plugin.tx_rlmptmplselector_pi1 an TEMPLATE übergeben

Tobias Bruns t.bruns at ogvit.de
Fri Jun 22 18:46:18 CEST 2007


Christian Leicht schrieb:
> Tobias Bruns schrieb:
>> Christian Leicht schrieb:
>>> Tobias Bruns schrieb:
>>>
>>>> Das ist ja auch nicht das, was ich dir gesagt habe :-)
>>>>
>>>> Du verwendest jetzt ja "plugin.tx_automaketemplate_pi1" und sagst 
>>>> nirgendwo, dass du plugin.tx_rlmptmplselector_pi1 verwenden möchtest.
>>>>
>>>> Du hättest vorhin eigentlich nur das = durch ein < ersetzten müssen. 
>>>> Probier das nochmal aus. Bei mir funzt es so jedenfalls.
>>>>
>>>> Gruß,
>>>> Tobias
>>> Ja da habe ich einen Fehler, aber ich Brauche die Umsetzung in ein 
>>> TEMPLATE zum auslesen der Subpart und Marker. AutoMakeTemplate 
>>> verwende ich nicht.
>>>
>>> So hab ichs jetzt:
>>>
>>>
>>> plugin.tx_rlmptmplselector_pi1.templPathMain = 
>>> fileadmin/templates/layouts/
>>> plugin.tx_rlmptmplselector_pi1.templPathSub =
>>> fileadmin/templates/layouts/sub/
>>> plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameMain =
>>> standard_l-3-r.html
>>>
>>> temp.mainTemplate = TEMPLATE
>>> temp.mainTemplate {
>>>      template =< plugin.tx_rlmptmplselector_pi1
>>>      template.content.templateType = main
>>>      workOnSubpart = DOCUMENT_BODY
>>>
>>> }
>>>
>>>
>>>   page = PAGE
>>>   page {
>>>      typeNum = 0
>>>      admPanelStyles = 1
>>>
>>>   }
>>>
>>>   page.10 < temp.mainTemplate
>> Dein Problem ist das = Zeichen, welches du hier (template =< 
>> plugin.tx_rlmptmplselector_pi1) schon wieder verwendet hast. Lass das 
>> doch einfach mal weg.
> 
> Es funktioniert leider nicht mit nur dem <
> 
> Ich hab diesen Part aus dem YAML Framework und da funktioniert es.

Puh, dann weiß ich leider auch nicht wirklich weiter. Ich hänge dir 
nochmal mein funktionierendes Setup an, evt. hilf dir das ja weiter.
Der Unterschied, der mir jetzt noch spontan auffällt ist, dass ich 
vorher noch mittels "page.10.template = FILE" dem Template Objekt sage, 
dass es vom Typ "FILE" sein soll. WIe gesagt, bei funktioniert es auf 
dem Wege immer wunderbar.


##--TEMPLATE SELECTOR EINSTELLUNGEN--##
[treeLevel = 0]
   plugin.tx_rlmptmplselector_pi1.templatePathMain = 
fileadmin/switch_templates/main/
   plugin.tx_rlmptmplselector_pi1.templatePathSub = 
fileadmin/switch_templates/sub/
   plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameMain = 
homeThreeCol.html
   plugin.tx_rlmptmplselector_pi1.inheritMainTemplates = 0
   plugin.tx_rlmptmplselector_pi1.inheritSubTemplates = 0
[else]
   plugin.tx_rlmptmplselector_pi1.templatePathMain = 
fileadmin/switch_templates/main/
   plugin.tx_rlmptmplselector_pi1.templatePathSub = 
fileadmin/switch_templates/sub/
   plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameMain = oneCol.html
   plugin.tx_rlmptmplselector_pi1.inheritMainTemplates = 0
   plugin.tx_rlmptmplselector_pi1.inheritSubTemplates = 0
[end]

##--PAGE OBJEKT DEFINIEREN UND MARKER FUELLEN--##
page = PAGE
page.typeNum = 0
page.10 = TEMPLATE
page.10 {
   template = FILE
   template < plugin.tx_rlmptmplselector_pi1
   workOnSubpart = DOKUMENT
   marks.SEARCH_URL < temp.searchURL
   marks.LANGMENUE = PHP_SCRIPT_INT
   marks.LANGMENUE.file = fileadmin/scripts/langmenue.php
   marks.LOGO < temp.logoImg
   marks.MAINMENUE < temp.mainMenue
   marks.IMPRINT_LINK < temp.imprintURL
}



More information about the TYPO3-german mailing list