[TYPO3] Filtering typo3 output

Christopher Torgalson bedlamhotel at gmail.com
Wed Jan 10 18:50:22 CET 2007


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].


-- 
Christopher Torgalson


[1] http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/7/3/
[2] http://wiki.typo3.org/index.php/Glossary/New_Words
[3] http://typo3.org/documentation/document-library/tutorials/doc_tut_ftb1/1.0.1/view/1/4/


More information about the TYPO3-english mailing list