[TYPO3-english] TYPO3 4.3.0RC2 - css_styled_content

Andreas Becker ab.becker at web.de
Sat Nov 28 12:03:21 CET 2009


Hi all

In line 246 - 256

default = COA
default {
10 = TEXT
10 {
value = <div *id*="c{field:uid}"      (LINE 250)
override.cObject = TEXT
override.cObject {
value = <div
if.value = div
if.equals.field = CType
}

Problem:

if it is an ID value and your reference CEs on the same page you have huge
problems with validating the code
When you change the ID to Class there are no errors!

I changed it to

default = COA
default {
10 = TEXT
10 {
value = <div *class*="c{field:uid}"       (LINE 250)
override.cObject = TEXT
override.cObject {
value = <div
if.value = div
if.equals.field = CType
}

Is there any reason why this MUST be an ID instead of a CLASS?

If there is no reason to have an ID, than I would recommend it to be a CLASS
instead, what do you think?

Andi


More information about the TYPO3-english mailing list