[TYPO3] tt-news image size & subheader formatting

Michel Albert exhuma at gmail.com
Tue Dec 12 10:20:21 CET 2006


> Hi,

Hello back.

>
> 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
>    }
>
> [...]

Strange. I tried that without luck. Tried it again today, still no results :(
Well, I suppose I need to do some more digging then. However, the other issue
with parsing the subheader becomes more critical now. We went into production
today despite the fact that this formatting does not yet work. However, it
would be useful to have this feature. Additionally, is it possible to activate
the RTE for the subheader field?

>
> The difference between Setup and Constants? Sorry, I'm also not
> unterstanding it.
>
> Greetz
> Ling
>
> Btw: Sorry for the cruel english...

You are doing fine ;)

>
>
> 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,
> >


More information about the TYPO3-english mailing list