[TYPO3] Filtering typo3 output

dieter orens reddesertvandriver at gmail.Com
Wed Jan 10 19:06:13 CET 2007


thanks, you've been a great help so far.
Maybe I'll just leave the text with image-element.. just too bad you 
can't just include an image in the new RTE of the 'text-element'.. I 
recall this was possible with the earlier version of typo3?

Christopher Torgalson schreef:
> Hi,
> 
> On 1/10/07, dieter orens <reddesertvandriver at gmail.com> wrote:
>> Even more filtering wanted.. If I use the text with image I get more
>> divs I don't want...
>> any idea how to convert:
>>
>> <div class="csc-textpic csc-textpic-intext-left"><div
>> class="csc-textpic-imagewrap"><dl class="csc-textpic-image
>> csc-textpic-firstcol csc-textpic-lastcol" style="width:200px;"><dt><img
>> src="uploads/pics/spliff.jpg" width="200" height="212" border="0" alt=""
>> /></dt><dd class="csc-textpic-caption"></dd></dl></div>
>>
>> into
>>
>> <img src="uploads/pics/spliff.jpg" width="200" height="212" border="0"
>> alt="" class="floatLeft" />
>>
>> ?
>>
>> Also, I haven't figured out how to get rid of the stylesheet.
> 
> 
> Answers in reverse order--
> 
> Remove temp stylesheet:
> 
> You can usually find stuff like this in the TSref (mostly in the
> 'config' section [1]). The property you're looking for is
> 'inlineStyle2TempFile.' Set it to zero:
> 
> config.inlineStyle2TempFile = 0
> 
> This will bring on an epidemic of CSS in the head section of all your
> pages. This CSS is added by various extensions, and you'll have to go
> through them one by one to turn everything off. If the extension is
> 'plugin.tx_foo_pi1,' then the syntax is:
> 
> plugin.tx_foo_pi1._CSS_DEFAULT_STYLE >
> 
> 
> Your first question is harder in a way. Generally speaking, TYPO3's
> core does not output a lot of CSS, but the one case where it /does/ is
> in the 'Text with Image' content element. So if you've gone through
> and done the steps that I outlined above, the Text with Image content
> element will not be styled correctly. This is also why there's all
> that complex markup in the HTML output of Text with Image.
> 
> Because of all this, if I recall correctly, /most/ of the markup (the
> definition list) is output by php code, not Typoscript, so it's not
> immediately accessible. You can change some of the wraps by editing
> the TS using the TS Object Browser [2] to work on the following
> objects:
> 
> tt_content.textpic.20.text.10
> tt_content.textpic.20.text.20
> 
> If what you /need/ is not as complex as all this, you may want to just
> use the image button in the RTE, or create a Flexible Content Element
> in TV (your page layouts do not have to use TV to do this) [3].
> 
> 


More information about the TYPO3-english mailing list