AW: AW: [Typo3-UG Oesterreich] Problem mit den Metatags
Thomas Ludescher
thomas.ludescher at students.fh-vorarlberg.ac.at
Mon May 2 13:27:43 CEST 2005
Hallo,
Das wenn ich die zeile page.headerData.999 < plugin.meta
Am ende meines template setup einfüge ändert sich bei mir nichts.
Ich sehe dann nur ein metatag und zwar
<meta name="generator" content="TYPO3 3.7 CMS" />
Ich denke, dass ich sicher irgend etwas falsch gemacht habe bei meinem
template setup. Deshalb habe ich es einfach mal unten mitgeschickt
Lg Thomas
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/template_subpage.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/
}
//Meta (diese werden angezeigt)
page.meta.KEYWORDS = keyword1, keyword2,...
page.meta.DESCRIPTION = desc...
page.meta.COPYRIGHT = copy...
page.meta.AUTHOR = aut...
# Menu 1 cObject
temp.menu_1 = HMENU
temp.menu_1.entryLevel = 0
temp.menu_2 = HMENU
temp.menu_2.entryLevel = 1
temp.bilddatei = TEXT
temp.bilddatei.value = ../../fileadmin/images/dummy.jpg
temp.bilddatei.override.data = levelmedia: -1, "slide"
#set the backgroundcolor if necessary
page.left_color = COA
page.left_color {
10 = TEXT
10.value = style="background-color: #DCDDEF;"
#10.wrap = |
10.if.isTrue.numRows < styles.content.getLeft
20 < styles.content.getLeft
}
page.right_color = COA
page.right_color {
10 = TEXT
10.value = style="background-color: #DCDDEF;"
#10.wrap = <b> | </b><br>
10.if.isTrue.numRows < styles.content.getRight
20 < styles.content.getRight
}
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
# Normal state properties
NO.allWrap = <span class="menu1-level1-no"> | </span>
# Enable active state and set properties:
ACT = 1
ACT.allWrap = <span class="menu1-level1-act"> | </span>
}
temp.menu_2.1 = TMENU
temp.menu_2.1 {
# 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>
}
# 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
subparts.menu_2 < temp.menu_2
subparts.header_img < temp.image_area
subparts.MENU_BILD < temp.bilddatei
subparts.COLOR_LEFT < page.left_color.10
subparts.COLOR_RIGHT< page.right_color.10
#subparts.rc < temp.right_color
# Substitute the ###content### subpart with some example content:
subparts.content_normal_sub < styles.content.get
subparts.content_left_sub < styles.content.getLeft
subparts.content_right_sub < 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
page.headerData.999 < plugin.meta
More information about the TYPO3-at
mailing list