[TYPO3] tt_news subheader formatting
Michel Albert
exhuma at gmail.com
Mon Dec 11 14:04:20 CET 2006
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.
More information about the TYPO3-english
mailing list