[TYPO3] Filtering typo3 output
Albert Dekker
albert at pod-dubon.com
Mon Jan 15 10:53:04 CET 2007
Have been peeking around a bit more to remove first header style and get
plain wrapping with h2 without a class.
Have a look at the typoscript object browser >> setup
Under the lib heading you will find the stdHeader >> Load Register.
Clear both HeaderClass = and notrimwrap =.
This does the job.
Albert
dieter orens wrote:
> no, certainly not the ones with # in front, they're commented out I
> guess :-)
>
>
> Albert Dekker schreef:
>> Thanks Dieter,
>> It works and in fact the first one stays in. No clue why.
>> Have tried to find a bit more on the headerClass but dit not find a
>> thing.
>> It looks from the logic however that with the headerClass it should be
>> possible to define any class ore none.
>> It looks to me that the last three lines are not having any result on
>> the output. But being no coder..........
>>
>> ALbert
>>
>>
>>
>>
>>
>> dieter orens wrote:
>>> Hi,
>>>
>>> I used the following typoscript and put it in the setup field:
>>>
>>> lib {
>>> stdheader {
>>> stdWrap {
>>> dataWrap =
>>> prefixComment =
>>> }
>>> #1.headerClass =
>>> #1.headerClass.noTrimWrap =
>>> 10.stdWrap.wrap =
>>> }
>>> }
>>>
>>> Now the div around the headers are gone, although it still attaches a
>>> class to the first header --> class="csc-firstHeader"
>>> but this can be used/overridden by your own CSS if you want to.
>>> I also kept the typo3temp stylesheet, as it only applies styles when
>>> you use certain content elements with images.
>>>
>>> Hope that helps!
>>>
>>> Albert Dekker schreef:
>>>> dieter orens wrote:
>>>>> Hi, it's been a while since I've used Typo3 and I have a few
>>>>> questions.
>>>>>
>>>>> I notice that typo3 renders too many divs, classes and stuff that I
>>>>> don't need. How can I get rid of these.
>>>>>
>>>>> For example, when I use an <h2> header in the text element, I get
>>>>> this:
>>>>>
>>>>> <div class="csc-header csc-header-n1"><h2
>>>>> class="csc-firstHeader">Welkom bij de Splifftones!</h2></div>
>>>>>
>>>>> when all I want is:
>>>>>
>>>>> <h2>Welkom bij de Splifftones!</h2>
>>>>>
>>>>> 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" />
>>>>>
>>>>> How do I lose this?
>>>>>
>>>>> And how do I get rid of all the obtrusive javascript..? lots of
>>>>> onfocus and onblurs are used in the page source.
>>>>>
>>>>> Thanx a lot!
>>>>
>>>> Hi Dieter,
>>>> Being not a coder but only someone trying to get a nice website for
>>>> myself I run into the same problem as you encounter.
>>>> I try to keep everything as simple as possible, all formatting of
>>>> the main content done by my own css.
>>>> I looked at the thread but would be interested in how you finally
>>>> solved a heading h2 to be not wrapped in a div nor typo3 css classes.
>>>> Now my css is overridden by typo3.
>>>> Sorry, I am a newbee and need just some more handhelds.
>>>> Regards, Albert
More information about the TYPO3-english
mailing list