2017-08-03 45 views
0

我具有用於與2動作的形式的plugion(2個不同的模板)禁用索引: -ShowForm.html -Success.html(當表單已提交)TYPO3:索引搜索indexed_search,對於某些控制器動作

問題在於兩者都被搜索引擎編入索引。我只希望表單本身(ShowForm.html)出現在搜索結果中。

有沒有辦法禁用特定操作的索引?我這種情況下,我可以阻止「成功」行爲被索引。

回答

1

只需添加標記<!--TYPO3SEARCH_begin--><!--TYPO3SEARCH_end-->這樣的:

This part is indexed 
... 
<!--TYPO3SEARCH_end--> 
... 
Your template which should not be indexed 
... 
<!--TYPO3SEARCH_begin--> 
... 
This part is indexed again