[TYPO3] Adding attributes to a container tag?
He Shiming (NOSPAM)
mailbill at 21cn.com.nospam
Thu May 25 08:09:04 CEST 2006
Hi,
I've got the following setups in the template of the website:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_BODY
subparts {
mainContent < styles.content.get
mainContent.stdWrap.addParams.class = testclass
}
}
It uses automaketemplate and css styled content, the template loading code
is omitted as I'm sure it's working fine. The HTML template of it looks like
this:
<div id="mainContent">
</div>
And what I was trying to achieve, is that the above will become:
<div id="mainContent" class="testclass">
css styled content
</div>
I'm wondering if this is possible. The code I posted, using stdWrap, didn't
work. The result looks like this:
<div id="mainContent">
<!-- class="testclass">
...
How do I add an attribute to the container tag?
Thanks in advance,
--
He Shiming
More information about the TYPO3-english
mailing list