Bug #75972
closedWrong result title
0%
Description
Hi all,
I have a detail page which displays the content of an item from a plugin.
I put in my show action :
$pageRenderer = GeneralUtility::makeInstance('TYPO3\CMS\Core\Page\PageRenderer'); $pageRenderer->setTitle($item->getTitle()); $GLOBALS['TSFE']->altPageTitle = $item->getTitle(); $GLOBALS['TSFE']->indexedDocTitle = $item->getTitle();
But indexed Search doesn't index the title of my item.
In the Indexing Engine Statistics, the "item_title" is always the name of the page but not the title of my item.
What's wrong with it ?
Thank you all for advance :)
Updated by Markus Klein over 8 years ago
I guess it has to do whether your page is cached or not.
Generally it suffices to only use the last two code lines.
Compare also: https://github.com/TYPO3-extensions/news/blob/master/Classes/ViewHelpers/TitleTagViewHelper.php#L43
Updated by Antoine Bouet over 8 years ago
The page is cached :(
I have news system too and it works for this plugin but not with mine ...
I tried to put in my fluid :
<n:format.nothing><n:titleTag>{item.title}</n:titleTag></n:format.nothing>
But no effects ... :(
I don't understand why the two lines of my controller are not sufficient.
Updated by Antoine Bouet over 8 years ago
Oh my God ...
In the localconf, the show action was non-cachable ...
Then it works :)
But I don't understand how Typo3 can index the item with this parameter...
Thanks Markus !
Updated by Markus Klein over 8 years ago
- Status changed from New to Closed
I'm closing this issue now. Please ask support questions on Slack or on the mailing lists. This is only the bug tracker. Thanks for your understanding.