[TYPO3] This one for the typoscript guru´s...

Christopher bedlamhotel at gmail.com
Tue Jul 4 04:03:43 CEST 2006


Hi Ries,

On 7/3/06, R. van Twisk <typo3 at rvt.dds.nl> wrote:
> hey All,
>
> I have this generate HTML:
> <div class="csc-frame csc-frame-frame1">
> <div class="csc-header csc-header-n4"><h2>Kopje 3</h2></div>
> <table >
> <tr><td colspan="1"><img src="clear.gif" width="120" height="1" alt=""
> /></td><td rowspan="2" valign="top"><img src="clear.gif" width="10"
> height="1" alt="" title="" /></td></tr>
> <tr><td valign="top"><img src="typo3temp/pics/f_2b7437eb38.jpg"
> width="120" height="90" border="0" align="top" alt="" title="" /><br
> /></td></tr>
> </table>
> <p class="bodytext">Nam quam lectus, tristique ........</p>
> </div>
>
> However, my h2 with the text Kopje 3 is at the wrong place.
> It shows above my image and body text,
> However what I need is that my h2 needs to be next to my image.
> See the below HTML of what I need...
>
> <div class="csc-frame csc-frame-frame1">
> <table >
> <tr><td colspan="1"><img src="clear.gif" width="120" height="1" alt=""
> /></td><td rowspan="2" valign="top"><img src="clear.gif" width="10"
> height="1" alt="" title="" /></td></tr>
> <tr><td valign="top"><img src="typo3temp/pics/f_2b7437eb38.jpg"
> width="120" height="90" border="0" align="top" alt="" title="" /><br
> /></td></tr>
> </table>
> <h2>Kopje 3</h2><p class="bodytext">Nam quam lectus, tristique ........</p>
> </div>
>
>
> I am not much of a autotemplate builder guy (I always worked with TV,
> with TV it's easy...)
> and I know this can be changed with TS, but I am a little bit clueless
> at what part
> I need to change it. I come as far as lib.stdHeader,
>
> But I can't see well where lib.stdHeader is added to teh complete
> content record.
> When I search in template Analyzer I can't really find it.
>
>
> Anybody want to give me a hand or hint?

I'm not sure which content element type you're using (and I guess
you're using the "content (default)" template not css-styled-content),
but have a look in the TS object browser and the TS template analyzer
at the specific content type you're working with. In css-styled
content (I don't have any 'content (default)' sites to look at), for
example, the content type 'textpic' is defined this way:

tt_content.textpic = COA
tt_content.textpic {
10 = COA
10.if.value = 25
10.if.isLessThan.field = imageorient
10.10 = < lib.stdheader

20  = < tt_content.image.20
20.text.10 = COA
20.text.10 {
if.value = 24
if.isGreaterThan.field = imageorient
10 = < lib.stdheader
10.stdWrap.dataWrap = <div class="csc-textpicHeader
csc-textpicHeader-{field:imageorient}">|</div>
}
20.text.20 = < tt_content.text.20
}

You can see that the whole content element is just a COA and that the
the contents of lib.stdheader is inserted at
tt_content.textpic.10.10--just try changing tt_content.textpic.10 to
tt_content.textpic.30 to see what happens...

Whichever content type you're using, I guess the specific solution
should be analagous to this example.

-Christopher



More information about the TYPO3-english mailing list