---
title: "Kann dem HTML keine unterschiedlichen Klassen zuweisen."
url: "https://www.typo3.net/d/34965-kann-dem-html-keine-unterschiedlichen-klassen-zuweisen"
source: "typo3.net"
tags: ["Allgemein","Frage","Inhaltselemente","Templates & Layouts"]
created: "2005-12-16"
last_reply: "2005-12-16"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Kann dem HTML keine unterschiedlichen Klassen zuweisen.

Allgemein · 0 Antworten · gestartet 2005-12-16

## Eröffnungsbeitrag

**acheron2512** · 2005-12-16 · [Beitrag #1](https://www.typo3.net/d/34965-kann-dem-html-keine-unterschiedlichen-klassen-zuweisen/1)

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#

---

Quelle: „Kann dem HTML keine unterschiedlichen Klassen zuweisen.“, typo3.net, https://www.typo3.net/d/34965-kann-dem-html-keine-unterschiedlichen-klassen-zuweisen
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
