Hallo,
ich entschuldige mich sofort für mein Deutsch weil es nicht mein Muttersprache ist.
So, ich verstehe etwas wirklich nicht : Ich habe geprobiert um ein Seite von typoscript zu zeigen (ohne der header, ohne die Titel,... nur was ich geschrieben hatte als content)
Aber es läuft nicht...
Nachher habe ich geprobiert um die template von die rootpage zu nehmen und es für ein Seit zu anpassen... das läuft nicht mehr...
dann habe gemerkt dass die template fonktionerte schon nicht in ein andere stelle als die rootpage (ich meine das die typoscript läuft in ein einsiege stelle)
Eigentlich, mein typoscript kommt von ein Tutorial (Modern Template Building, Part 1 (MTB/1)) ich gebe es hier :
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/main/defactoit_template.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="menu1-level1-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
# Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}
# Third level menu-object, textual
temp.menu_1.3 = TMENU
temp.menu_1.3 {
# Normal state properties
NO.allWrap = <div class="menu1-level3-no"> | </div>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level3-act"> | </div>
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with dynamic menu:
subparts.menu_1 < temp.menu_1
# Substitute the ###content### subpart with some example content:
subparts.title < styles.content.getLeft
subparts.content < styles.content.get
subparts.more < styles.content.getRight
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate
############## Langues ####################
# configuration de la langue pour le site par d�aut
config.sys_language_uid =0
config.language=fr
config.locale_all=fr_FR
page.config.language = fr
#configuration de la variable L - cette variable est utilis� pour passer le
#param�re du changement de langue dans le query string.
config.linkVars=L
#fran�is GP:L est l'ID de cette langue rentr� �l'�ape 1
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = fr
config.locale_all = fr_FR
page.config.language = fr
#doit etre retourner pour que les langues marchent
[GLOBAL]
#anglais GP:L est l'ID de cette langue rentr� �l'�ape 1
[globalVar = GP:L = 3]
config.sys_language_uid = 3
config.language = en
config.locale_all = english
page.config.language = en
#doit etre retourner pour que les langues marchent
[GLOBAL]
kann jemandem mir helfen um es zu verstehen oder am besten zu Lösen?
Ich bedanke mich