[TYPO3-english] using a hook for tt_news only in ONE contentelement
Jigal van Hemert
jigal at xs4all.nl
Sun Sep 26 07:54:37 CEST 2010
Hi,
On 26-9-2010 0:02, Ralf-René Schröder wrote:
> How is it possible using a hook for tt_news (see at the bottom) in only
> one contentelement?
Hooks work for an entire installation.
> On my site i want to filter a newslist only to show the own posts of the
> logged in user.
The fastest and easiest solution for me would be to use a Typoscript
CONTENT object to get the records from the database and instead of
fiddling with the tt_news template and configuration for such a list I
would simply use the renderObj of the CONTENT object to build the actual
list and links.
Since you are already into programming hooks setting up a CONTENT object
would take you about an hour or so.
If you need to set it up as a content element on a page, use an
extension such as typoscriptce [1].
(General remark: it is truly amazing how much you can do with Typoscript!)
[1] http://typo3.org/extensions/repository/view/typoscriptce/current/
--
Kind regards / met vriendelijke groet,
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
More information about the TYPO3-english
mailing list