Hallo
Ich versuche schon seit zwei Tagen rlmp_tmplselector und irgenwie schaffe ich es nicht das es angesprochen wird.
meine Scriptkenntisse reichen leider nicht aus, hoffe das mir jemand weiter helfen kann.
Ich habe es soweit ich ich unter Page die verschiedene Templates auswählen kann, wenn ich aber die Seite öffne kommt jedoch das Standart Template.
Vielleicht auch noch wichtig ich verwende kein ViolettTemp
So das habe ich mal dem Setup hinzugefügt und das funkt auch
plugin.tx_rlmptmplselector_pi1.templatePathMain = fileadmin/template/main/
plugin.tx_rlmptmplselector_pi1.templatePathSub = fileadmin/template/sub/
plugin.tx_rlmptmplselector_pi1.inheritMainTemplates = 1
plugin.tx_rlmptmplselector_pi1.inheritSubTemplates = 1
plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameMain = index.html
plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameSub = subindex.html
der Standartteil mein Main Templates siehst so aus🙁falls jemand mehr brauch einfach nur bescheid sagen)
page = PAGE
page.typeNum = 0
page.includeCSS {
file1 = fileadmin/template/main/css/main.css
}
temp.rcontent < styles.content.getRight
temp.rcontent.stdWrap {
wrap = <div id="rcontent"> | </div>
if.isTrue.numRows < styles.content.getRight
}
temp.lcontent < styles.content.getLeft
temp.lcontent.stdWrap {
wrap = <div id="lcontent"> | </div>
if.isTrue.numRows < styles.content.getLeft
}
page.headerData.1 = TEXT
page.bodyTag = <body id="type-c">
page.1 = TEMPLATE
page.1 {
template = FILE
template.file = fileadmin/template/main/index.html
workOnSubpart = DOKUMENT
subparts.INHALT < styles.content.get
subparts.MENU_OBEN < temp.MenuOben
subparts.MENU_LINKS < temp.MenuLinks
subparts.BREADCRUMP < tmp.breadcrump
}
Laut einem Tuorial muss ich das hinzufügen! Was ist hier genau ändern muss weis ich leider nicht!
plugin.tx_automaketemplate_pi1 {
content = FILE
content < plugin.tx_rlmptmplselector_pi1
}
temp.contentAreaTemplate = TEMPLATE
temp.contentAreaTemplate {
template < plugin.tx_automaketemplate_pi1
template.content.templateType = sub
template.relPathPrefix = fileadmin/template/sub/
workOnSubpart = DOCUMENT_BODY
subparts.SUB_TEMPLATE_CONTENT = TEXT
subparts.SUB_TEMPLATE_CONTENT.value = SUBTEMPLATE CONTENT!!!!!!!
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template < plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts.SUB_TEMPLATE_AREA < temp.contentAreaTemplate
}
1000 Dank,
Billix