Zum Inhalt springen

Kann dem HTML keine unterschiedlichen Klassen zuweisen.

Erstellt am 16. Dezember 2005 · Noch keine Antworten

Tags: Templates & Layouts, Inhaltselemente, Frage

acheron2512 ·

Hallo!

Ich habe das Problem, dass meine Typo-Seite zwar wunderbar Inhalte generiert, aber im Gegensatz zu einer früher erstellten, sehr ähnlichen Seite, den Inhalten aus der Colpos 0 und 3 die gleichen Klassen im HTML mitgibt.

Im generierten HTML-Code sieht das so aus:

<div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">Mal schauen...</h1></div>

(Teaserspalte rechts)

und

<div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">Willkommen</h1></div>

(eigentlicher Inhaltsbereich)

# Configuring the Auto-Parser for main template

plugin.tx_automaketemplate_pi1 {
# Read the template file
content = FILE
content.file = fileadmin/template/main/index1.html

# Here we define which elements in the HTML 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
DIV.all = 1
}

# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}

(...)

#Create temporary Breadcrumb Menu

temp.breadcrumb = HMENU
temp.breadcrumb {
special = rootline
entryLevel=0
special.range = 1 |
1 = TMENU
1.wrap= Sie befinden sich hier: |
1.NO = 1
1.NO.doNotLinkIt = 0 |*| 0 |*| 1
1.ATagParams = class="breadcrumb"
1.NO.linkWrap =  | » |*|  | » |*|   |  
}


#Create temporary Footer Menu

temp.footer = TEXT
temp.footer.value = <a href="index.php?id=2">Impressum</a> <a href="index.php?id=26">Kontakt</a>

#Create temporary Teasers

temp.teaser = CONTENT
temp.teaser {
table = tt_content
select.orderBy = sorting
select.where = colPos = 2
}

#Create temporary Content
temp.content = CONTENT
temp.content {
table = tt_content
select.orderBy = sorting
select.where = ColPos = 0
}

#Create whole Body Content
temp.inhalt = COA
temp.inhalt {
10 = TEXT
10 < temp.breadcrumb
20 = TEXT
20 < temp.content
}

# 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 ###content### subpart with some example content
subparts.content < temp.inhalt

#Substitute the ###teaser### subpart with some example content
subparts.teaser < temp.teaser
}

# 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

config.doctype = xhtml_trans
stylesheet = fileadmin/template/main/styles/style.css
}

#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

Woran könnte das denn liegen, bzw. wie behebe ich das?

Viele Grüße und Danke im Voraus![/quote] #angry#