[Typo3] building teaser using only TypoScript
Peter Klein
peter at umloud.dk
Wed Sep 21 22:37:51 CEST 2005
Hi Krystian. I suggest you use the CASE object for your 2nd renderObj, like
this:
-- cut --
renderObj = CASE
renderObj {
key.field = CType
# This is rendered if it's a header element (actually its any
element, except "image")
default = TEXT
default.field = header
default.wrap = <tr><td>|</td></tr>
# This is rendered if the element is of the type "image"
image = IMAGE
image.file.import = uploads/pics/
image.file.import.field = image
image.file.width = 100
image.stdWrap.typolink.parameter.field = pid
image.stdWrap.typolink.wrap = <tr><td>|</td></tr>
}
-- cut --
And then add this to wrap it all up in a table tag..
-- cut --
lib.a.stdWrap.wrap = <table>|</table>
-- cut --
---
Peter Klein/ Umloud Untd
"Krystian Szymukowicz" <t33k.RE.MO.VE at RE.MO.VE.prolabium.com> wrote in
message
news:mailman.1.1127322714.20461.typo3-english at lists.netfielders.de...
>
> hi all
>
> i want to do some kind of teaser using only TS.
>
> I got following structure
>
> Page1
> |____Subpage 1
> |____Subpage 2
> |____Subpage 3
> |____Subpage 4
>
> Every Subpage has 4 tt_content elements
> 1. header1
> 2. header2
> 3. image
> 4. table
>
> What I want to do is to show at Page1 following content in the table:
>
> <table>
>
> <tr><td> header2 of subpage1 </td></tr>
> <tr><td> image of subpage1 </td></tr>
>
> <tr><td> header2 of subpage2 </td></tr>
> <tr><td> image of subpage2 </td></tr>
>
> <tr><td> header2 of subpage3 </td></tr>
> <tr><td> image of subpage3 </td></tr>
>
> <tr><td> header2 of subpage4 </td></tr>
> <tr><td> image of subpage4 </td></tr>
>
> </table>
>
> Well - it almost work :) all images are displayed but I can't figure out
> how to display header together with images and I must ask you to help me
> here :)
>
>
> Could you be so kind to share your knowledge and show me the right
> direction of doing such teaser?
>
> --
> grtz
> Krystian Szymukowicz
>
>
More information about the TYPO3-english
mailing list