[Typo3] Changing <h1> wraps

JoH info at cybercraft.de
Wed Oct 19 02:01:17 CEST 2005


> For some reason I am not understanding what you have just suggested...
>
> Ok, the design aspect of it, you are right, I understand you, however
> that works only if I want to use <hx> (or whatever) all throughout the
> site...
>
> What I am asking is how do I change the <Hx> to <Hy> only for one
> specific area.
>
> I believe you understood me, but again, I am baffled on how to exactly
> use : 'lib.stdheader.10.x' to make it do what I want, from what I
> understand, that simply changes the wrap for the whole site, not just
> for one specific area.

Exactly - so what you have to do is: Change the different Objects of
lib.stdheader to use outerWrap.

lib.stdheader.10.1 {
    outerWrap.cObject = TEXT
    outerWrap.cObject {
        value = <div class="whatever">|</div>
        if {
            value = 1
            # 1 for left, 2 for right, 3 for border
            equals.field = colPos
        }
    }
}

Same thing for

lib.stdheader.10.2
lib.stdheader.10.3
lib.stdheader.10.4
lib.stdheader.10.5

not tested but should be working.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau





More information about the TYPO3-english mailing list