我有一个带有2个动作的表单的插件(2个不同的模板): -ShowForm.html -Success.html(提交表单时)
问题是两者都被搜索引擎索引。我只希望表单本身(ShowForm.html)出现在搜索结果中。
有没有办法禁用特定操作的索引?在这种情况下,我可以阻止"成功"被索引的行动。
答案 0 :(得分:1)
只需添加标记<!--TYPO3SEARCH_end-->
和This part is indexed
...
<!--TYPO3SEARCH_end-->
...
Your template which should not be indexed
...
<!--TYPO3SEARCH_begin-->
...
This part is indexed again
,如下所示:
{{1}}