Actions
Bug #79006
closedExample for overwriting tx_idexedsearch.view wrong
Start date:
2016-12-15
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:
Description
The documentation of indexed_search show an example on how to overwrite Templates and Partials
plugin.tx_indexedsearch.view {
templateRootPaths {
0 = EXT:indexed_search/Resources/Private/Templates/
1 = EXT:myextension/Resources/Private/Templates/
}
partialRootPaths {
0 = EXT:indexed_search/Resources/Private/Partials/
1 = EXT:myextension/Resources/Private/Partials/
}
}
The Setup of the EXT itself has contains this:
view {
templateRootPaths {
0 = EXT:indexed_search/Resources/Private/Templates/
10 = {$plugin.tx_indexedsearch.view.templateRootPath}
}
partialRootPaths {
0 = EXT:indexed_search/Resources/Private/Partials/
10 = {$plugin.tx_indexedsearch.view.partialRootPath}
}
layoutRootPaths {
0 = EXT:indexed_search/Resources/Private/Layouts/
10 = {$plugin.tx_indexedsearch.view.layoutRootPath}
}
Which means, that the example given in the docs will never be in charge as the higher number will be taken into account.
The example should at least be higher than the default delivered with the EXT
plugin.tx_indexedsearch.view {
templateRootPaths {
0 = EXT:indexed_search/Resources/Private/Templates/
10 = {$plugin.tx_indexedsearch.view.templateRootPath}
20 = EXT:myextension/Resources/Private/Templates/
}
partialRootPaths {
0 = EXT:indexed_search/Resources/Private/Partials/
10 = {$plugin.tx_indexedsearch.view.partialRootPath}
20 = EXT:myextension/Resources/Private/Partials/
}
}
Actions