[TYPO3-ttnews] AND for selecting categories?
Christian Lerrahn
typo3 at penpal4u.net
Mon Feb 6 11:10:46 CET 2006
Hi Christian,
hi Oliver,
> > I want to select more than one category in a LIST/LATEST view, but the
> > different categories should be AND-connected, so that only news get
> > displayed that have ALL of the categories.
> >
> > Is there any way to do this?
> >
> > Greetings,
> >
> > Christian
>
> This has been on the wishes list for quite a while now... I would also
> very much need such a feature.
>
> I must say that I looked at the code and... well it's not obvious at
> all, because of the kind of relations. But on the other hand, isn't it
> an interseting challenge for our hackers around there?
That shouldn't be too hard to code. You could just use the hook
selectConfHook, eliminate the part of the where clause in the array and
replace it by a new one. If you don't mind making it inefficient you
could even just add the new clause leaving the old one because they won't
contradict. Then about 5 lines of code would probably be enough... :-)
Christian
--
"Meine Seele verlangt nach deinem Heil; ich hoffe auf dein Wort."
Psalm 119,81
More information about the TYPO3-project-tt-news
mailing list