Suggestion #33701
TT-News indexer: targetpage provided by category
| Status: | Resolved | Start date: | 2012-02-06 | |
|---|---|---|---|---|
| Priority: | Could have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 0 |
Description
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
if(){
$targetPID = tt_news::getRecursiveCategorySinglePid($newsRecord["newscategory"])
}else{
$targetPID = $this->indexerConfig['targetpid'];
}
History
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).
Until then:
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).
Updated by Christian Buelter 9 months ago
- Status changed from Accepted to Resolved