[TYPO3] <link> transformed from DB into <a> in FE only if ctype=HTML
JoH asenau
info at cybercraft.de
Thu Mar 22 13:30:08 CET 2007
> marks.blocks_right = HTML; <link> from DB is transformed to <a>
Errrm, no ;-) since it gets overriden by the next line so you can simply
remove the blah = HTML part.
> marks.blocks_right < styles.content.getRight
In fact your former HTML Element now is a CONTENT element and it contains
all the necessary parseFunc settings to generate links automagically, since
this is predefined in styles.content.getXXX.
The next element is a CONTENT element too, but you define the renderObj
yourself instead of using styles.content.get so the parseFunc settings are
not available.
So you might have to add them again:
marks.content_text = CONTENT
marks.content_text {
table = tt_content
select {
pidInList = this
selectFields = bodytext
where = colPos = 0
languageField = sys_language_uid
}
renderObj = COA
renderObj {
10 = TEXT
10 {
field = bodytext
parseFunc < lib.parseFunc_RTE
# parseFunc < lib.parseFunc
# if you are not using RTE content
}
}
}
required and wrap can be removed, since you don't need to check if there is
content, unless you got a wrap.
HTH
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
More information about the TYPO3-english
mailing list