Project

General

Profile

Actions

Bug #75972

closed

Wrong result title

Added by Antoine Bouet almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2016-04-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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 :)

Actions #1

Updated by Markus Klein almost 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

Actions #2

Updated by Antoine Bouet almost 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.

Actions #3

Updated by Markus Klein almost 8 years ago

Is your plugin cached as well?

Actions #4

Updated by Antoine Bouet almost 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 !

Actions #5

Updated by Markus Klein almost 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.

Actions

Also available in: Atom PDF