Feature #11910
preAddModifyDocuments Hook only works for Pages not for tt_news
| Status: | Resolved | Start date: | 2011-01-05 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Stefan Sprenger | % Done: | 100% |
|
| Category: | Index Queue | |||
| Target version: | - | |||
| TYPO3 Version: | Has patch: | |||
| PHP Version: | Tags: | |||
| Votes: | 0 |
Description
The preAddModifyDocuments Hook is only implementet in class.tx_solr_indexqueue_pageindexer.php so it works only for pages. I need an Hook to modify a Document of an tt_news record.
History
Updated by Ingo Renner over 2 years ago
- Assignee set to Stefan Sprenger
Updated by Stefan Sprenger over 2 years ago
- File PreAddModifyDocumentsHook.patch added
- Status changed from New to Needs Feedback
- % Done changed from 0 to 100
Hi Dirk,
can you please check the attached patch?
Kind regards
Stefan
Updated by Ingo Renner over 2 years ago
Note on the patch:
We moved the hook from the Index Queue page indexer to the general indexer which takes care of tt_news, too. The general indexer does not know about the language of the indexed item though. Thus you have to get the language from the document (for now).
Updated by Dirk Lamar over 2 years ago
Ok it works for me now !
Thanks !
Updated by Ingo Renner over 2 years ago
- Status changed from Needs Feedback to Resolved