[TYPO3] Filtering typo3 output
dieter orens
reddesertvandriver at gmail.Com
Wed Jan 10 18:27:52 CET 2007
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.
dieter orens schreef:
> thanks a lot!
> Concerning the stylesheet, I have my own stylesheet and want to use only
> that.
>
> Rob De Vries schreef:
>> Hey Dieter
>>
>>> I notice that typo3 renders too many divs, classes and stuff that I
>>> don't need. How can I get rid of these.
>>
>> tt_content {
>> list.20.stdWrap.prefixComment =
>> default.prefixComment =
>> stdWrap.prefixComment =
>> text.20.prefixComment =
>> header.20.prefixComment =
>> html.prefixComment =
>> bullets.20.stdWrap.prefixComment =
>> table.20.stdWrap.prefixComment =
>> image.20.stdWrap.prefixComment =
>> textpic.20.stdWrap.prefixComment =
>> uploads.20.stdWrap.prefixComment =
>> }
>>
>>
>> # REMOVE DIVS AROUND HEADERS
>> ############################################
>> lib {
>> stdheader {
>> stdWrap {
>> dataWrap =
>> prefixComment =
>> }
>> #1.headerClass =
>> #1.headerClass.noTrimWrap =
>> 10.stdWrap.wrap =
>> }
>> }
>>
>>
>>> Secondly, I notice that typo also attaches a stylesheet that I don't
>>> want:
>>
>>> <link rel="stylesheet" type="text/css"
>>> href="typo3temp/stylesheet_e99aac0be0.css" />
>>
>> Are you sure you don't want to use this stylesheet?
>> it is a rendered style sheet for css-content. Removing thiw ill remove
>> the styles for your content div's and/or other plugins.
>>
>>
>>> And how do I get rid of all the obtrusive javascript..?
>> depends on JS.
>>
>> config {
>> removeDefaultJS = external
>> inlineStyle2TempFile = 1
>> spamProtectEmailAddresses = 0 #no spam protection so no JS
>> spamProtectEmailAddresses_atSubst = (at)
>> }
>>
>>
>> lots of onfocus
>>> and onblurs are used in the page source.
>> blur = 0 #add this to your menu TS
>>
>>> Thanx a lot!
>>
>> your welcome
>>
>> Rob
>>
>>
More information about the TYPO3-english
mailing list