Was willst du Austauschen das Template oder den Titel?
Wenn du das Template varieren/austuaschen willst, dann manche dies über
ein 'Switch-Template' und verlagere deine jeweiligen Templates mit
Ordner-Strukturen in den PartialOrdner.
Typoscript-Part (Auszug-Definition des Fluid-Template-Objects)
10=FLUIDTEMPLATE
10 {
file= fileadmin/templates/subdomain.domain.tld/template.html
variables {
CONTENT < styles.content.get
LAYOUT = TEXT
LAYOUT.data = TSFE:page|layout
}
}
HTML im Template(Strukturbeispiel)
<f:switch expression="{LAYOUT}>
<f:case value="1">
<f:render partial="subdomain.domain.tld/layouts" arguments="{_all}" />
<!-- für Path im Partial-Ordner
[partioalOrdner]/subdomain.domain.tld/layouts.html -->
</f:case>
<f:case default="TRUE">
<f:render partial="domain.tld/layouts" arguments="{_all}" />
<!-- für Path im Partial-Ordner [partioalOrdner]/domain.tld/layouts.html -->
</f:case>
</f:switch>
Deine jetzigen Templates werden dabei natürlich zu Partials.
Mit besten Grüßen
Dieter
P.S. Versuche dich ein wenig besser auszudrücken. Beschreib die aktuelle
Ornderstruktur und Template-Struktur (ggfls. mit einem Verzeichnis-Baum).
Schreibe in vollständigen Sätze mit höchstens zwei Komma; dein
kryptischer Abkürzungskram ist für mich schwer verständlich.
Am 24.01.2017 um 08:05 schrieb Stefan Kladler:
in dem Typo3 soll ein Multidomain Setup entstehen.
Seitenbaum
domain.tdl
subdomain.domain.tdl
Template tilte = domain.tld
temp.custom=fileadmin/templates/domain.tld/layouts/default/custom.css
[globalVar = TSFE:page|layout = 1]
# layout:1
temp.custom=fileadmin/templates/domain.tld/layouts/1/custom.css
[global]
page=PAGE
page {
type=0
includeCSS{
bootstrap=fileadmin/bootstrap/css/bootstrap.css
custom<temp.custom
}
10=FLUIDTEMPLATE
10 {
file= fileadmin/templates/domain.tld/template.html
variables {
CONTENT < styles.content.get
}
}
Wenn ich jetzt das Template kopiere und den Template title auf
subdomain.domain.tld ändere soll das ganze so aussehen
template title = subdomain.domain.tld
temp.custom=fileadmin/templates/subdomain.domain.tld/layouts/default/custom.
css
[globalVar = TSFE:page|layout = 1]
# layout:1
temp.custom=fileadmin/templates/subdomain.domain.tld/layouts/1/custom.css
[global]
page=PAGE
page {
type=0
includeCSS{
bootstrap=fileadmin/bootstrap/css/bootstrap.css
custom<temp.custom
}
10=FLUIDTEMPLATE
10 {
file= fileadmin/templates/subdomain.domain.tld/template.html
variables {
CONTENT < styles.content.get
}
}
somit soll
10 {
file= fileadmin/templates/template_title
immer durch den aktuellen template title ersetzt werden. gibt es dafür eine
Variable oder muss ich jedes mal den Template title von Hand anpassen
_______________________________________________
TYPO3-german mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
_______________________________________________
TYPO3-german mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german