Habe den Page Template Selector installiert, bekomme aber keine Templates zum Auswählen.
Habe im Template meiner Root unter constants:
plugin.tx_rlmptmplselector_pi1.templatePathMain = fileadmin/templates/
plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameMain = template.htm
plugin.tx_rlmptmplselector_pi1.templatePathSub = fileadmin/templates/sub/
plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameSub = full_page.htm
Dann im TS meiner Root unter Setup:
page.10 = TEMPLATE
page.10{
# template = FILE
# template.file = fileadmin/templates/template.htm
template =< plugin.tx_rlmptmplselector_pi1
workOnSubpart = DOKUMENT
Wenn ich jetzt auf einer Seite "erweitert" auswähle, dann sehe ich dass die Extension installiert ist, aber beim Auswählen eines Templates gibts nur Standard...
Obwohl die zwei Templates in fileadmin/templates.... vorhanden sind...
Wer kann mir helfen?
Die Templates haben die Endung htm oder html?
georg
Die Templates haben die Endung htm
Hallo Crossl
Ich habe das selbe Problem, dass es mir in der Auswahl der Template nur das "Default" (Standard) Template anzeigt.
Die Dateien sind im Verzeichnis /fileadmin/template/main bzw. /fileadmin/template/sub abgelegt.
Folgende Typoscript verwende ich hierfür:
plugin.tx_rlmptmplselector_pi1 {
# Template type. Default is "main". Allowed values: "main", "sub"
templateType = main
# Paths to search for templates in HTML file mode (vs. TS mode)
templatePathMain = fileadmin/template/main/
templatePathSub = fileadmin/template/sub/
##templatePathMain = /
##templatePathSub = /
# Refers to the default template file name to use
# if no value is set for the current page
defaultTemplateFileNameMain = template_1.html
defaultTemplateFileNameSub = ct_1.html
# Refers to the default template object to use
# if no value is set for the current page
defaultTemplateObjectMain = 10
defaultTemplateObjectSub = 10
# Contains TEMPLATE objects for TS mode (vs. external HTML file mode)
##templateObjects.main =
##templateObjects.sub =
# Use the template selected earlier in the rootline of no template was selected
##inheritMainTemplates = 0
##inheritSubTemplates = 0
}
Hast du herausgefunden, wie man das Problem der Anzeige lösen kann?
Gruss
Sebastian
Bin grade auf das Thema hier gestoßen, da ich selber nicht genau wußte wie man die Extension einbindet.
Bei mir laufen sebtypos Einstellungen soweit gut, ausser dass ich auch dies ins setup geschrieben habe und nicht in die constants:
plugin.tx_rlmptmplselector_pi1.templatePathMain = fileadmin/templates/
plugin.tx_rlmptmplselector_pi1.defaultTemplateFileNameMain = template.htm