Feature #39316
Curstom doktype or XCLASS
| Status: | Resolved | Start date: | 2012-07-27 | |
|---|---|---|---|---|
| Priority: | Could have | Due date: | ||
| Assignee: | Stefan Froemken | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - | |||
| Votes: | 0 |
Description
Hi everybody,
I would like to XCLASS class.tx_kesearch_indexer_types_page.php because I need add my own custom doktypes to startIndexing() and getPageRecords($uids) I would like XCLASS or better, define in TYPOSCRIPT what kinds of doktypes are pages and chagen lines
91 $where = ' (doktype = 1 OR doktype = 2 OR doktype = 4 OR doktype = 5 OR doktype = 54) ';
for $where .= ' AND doktype IN (1,2,4,5,54) '; // numbers could be remplaced for Typoscript constant
126 $where .= ' AND (doktype = 1 OR doktype = 2 OR doktype = 5 OR doktype = 54) ';
for $where .= ' AND doktype IN (1,2,5,54) ';// numbers could be remplaced for Typoscript constant
Best,
mvta
History
Updated by Christian Buelter 10 months ago
- Status changed from New to Accepted
- Priority changed from Should have to Could have
Hi Juan,
thanks for your suggestion. The indexer runs as a backend process, so typoscript is not the best way to go since this is normally used for frontend configuration.
Maybe this should be an extension manager configuration option.
Updated by Juan Manuel 10 months ago
Hi Christian,
You are right, do you think that it could be in next release? I could code it.
Updated by Christian Buelter 10 months ago
If you provide a patch against the current trunk, we will review it and chances are good that it will make it into the next release.
Please make sure that there's a fallback, so if someone upgrades from earlier releases and does not set the option in the em configuration ke_search still indexes all the default page types.
Updated by Stefan Froemken 8 months ago
- Status changed from Accepted to Resolved
- Assignee set to Stefan Froemken
- % Done changed from 0 to 100
Hello Juan,
I just have added XCLASS declarations to all of our PHP-files. So now you should have the possibility to extend this class to your needs.
Stefan