[TYPO3-ttnews] checkCategoriesOfRelatedNews ?
Martin Schmidt
madmat22_de at freenet.de
Wed Apr 25 13:29:53 CEST 2007
class.tx_ttnews.php contains a routine in the function getRelated( ) :
1.. if ($this->conf['checkCategoriesOfRelatedNews']) {
2.. if (count($currentCats)) { //
record has categories
3.. foreach ($currentCats
as $cUid) {
4.. if
(t3lib_div::inList($visibleCategories,$cUid['catid'])) { // if the record
has at least one visible category assigned it will be shown
5..
$relrows[$relrow['uid']] = $relrow;
Shouldn´t that exactly do what I want ?
How could I utilize that ?
I set:
plugin.tt_news.checkCategoriesOfRelatedNews=1
What else is needed ?
Martin
"Martin Schmidt" <madmat22_de at freenet.de> schrieb im Newsbeitrag
news:mailman.1.1177450421.15327.typo3-project-tt-news at lists.netfielders.de...
> Hi all,
>
> is it possible to configure a news plugin in a way, that it only shows
> "related news" from a certain category ?
> So someone can relate all kind of news but only the ones from "category X"
> are being shown in single view ?
> That would be great, thats the last possibility I can figure to reach my
> goal of related news, sorted by category.
>
> Sounds easy...isn´t.
>
> Thanks!
>
> Maddin
>
More information about the TYPO3-project-tt-news
mailing list