TT-News indexer: targetpage provided by category
|Priority:||Could have||Due date:|
TT-News implemented a function to define the targetpage of a news-entry by category.
tt_news uses the function getRecursiveCategorySinglePid for this. Maybe you could implement something like
$targetPID = tt_news::getRecursiveCategorySinglePid($newsRecord["newscategory"])
$targetPID = $this->indexerConfig['targetpid'];
Updated by Christian Buelter about 1 year ago
- Status changed from New to Accepted
- Priority changed from Should have to Could have
That's a good idea, we will look into it, but I can't say when (depends on time and sponsoring).
We extended the tt_news indexer hook, so that the targetpage can be overwritten by a hook.
Updated by Jan Bartels 9 months ago
Issue can be closed. Feature is already implemented in hook user_kesearch_sortdate::modifyNewsIndexEntry() (see hooks/class.user_kesearchhooks.php).