[TYPO3] tt_news subheader formatting

Daniel Selinger typo3 at dselinger.net
Tue Dec 12 00:34:41 CET 2006


Hi,

to your second question. This should work in your TS-Setup (works for me):

[...]

displayList {
    image{
     file.maxW = 176
     file.maxH = 146
     }
     subheader_stdWrap.crop = 500 | ... | 1
    }

[...]

The difference between Setup and Constants? Sorry, I'm also not
unterstanding it.

Greetz
Ling

Btw: Sorry for the cruel english...


2006/12/11, Michel Albert <exhuma at gmail.com>:
>
> Hi,
>
> I have currently a setup where the news list on the frontpage lists
> the latest news including image and a teaser. The teaser is
> automatically generated from the first 300 characters of the
> body-text. So far pretty straightforward. But I have a couple of
> questions regarding the formatting:
>
> First, is it possible to keep the formatting of the body text when the
> subheader is automatically generated from the body-text? I tried to
> add the following line to the template setup:
>
>    plugin.tt_news.displayList.subheader_stdWrap.parseFunc <
> lib.parseFunc_RTE
>
> But that did not change anything.
>
> Second, I also added a maxHeight and maxWidth for the image displayed
> in the frontpage, but this setting seems also to be ignored. I tried
> both image.file.maxH and image.file.height. No results so far. Here is
> my current page TS-setup:
>
>    plugin.tt_news {
>       displayList{
>          subheader_stdWrap {
>             parseFunc < lib.parseFunc_RTE
>             crop = 300 | ... | 1
>             ifEmpty.field = bodytext
>          }
>          image {
>             file.width = 120
>             file.height = 120m
>          }
>       }
>    }
>
> I could imagine that I put this onto the wrong place, but I do not
> know where else to put it. Right now it's in the page TS-Setup. I also
> tried the "Constants" Textarea without luck. What's the difference
> between "Constants" and "Setup" anyhow? Just curious ;)
>
>
>
> Best Regards,
>
> Mich.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list