[TYPO3] TypoScript stripping out inline <style> block
Christopher Torgalson
bedlamhotel at gmail.com
Fri Jun 13 00:21:50 CEST 2008
Hi,
On Thu, Jun 12, 2008 at 11:46 PM, <spaul at digipen.edu> wrote:
> I'm trying to dynamically generate a block of inline CSS using
> Typoscript. I have a base template file for the CSS like this:
>
> #some_element {
> border: 2px solid ###BORDER_COLOR### ###BORDER_COLOR###;
> }
>
> .some_content {
> color: ###CONTENT_COLOR### ###CONTENT_COLOR###;
> background-color: ###CONTENT_BACK_COLOR### ###CONTENT_BACK_COLOR###
> }
>
> I use a TEMPLATE cObject to replace the markers with template
> constants. This works fine and generates the correct out.
>
> However, when I wrap the resulting content in <style>|</style> or any
> variation thereof, TYPO3 seems to strip the entire object from the
> page output. It's a very frustrating problem and I hope someone knows
> how to alter/disable this behavior.
Where is this block located? If it's (invalidly) located within the
body element, it's likely that you've got Tidy or
config.xhtml_cleaning enabled and that's what's removing it.
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list