Typo3 键入3索引搜索重命名占位符

Typo3 键入3索引搜索重命名占位符,typo3,typo3-9.x,Typo3,Typo3 9.x,我试图在TYPO3 9.5.5中重命名索引搜索占位符标签 模板如下所示: <f:form.textfield name="search[sword]" value="{sword}" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword form-control mr-sm-2 form-control-sm" placeholder="{f:translate(key: 'LLL:EXT

我试图在TYPO3 9.5.5中重命名索引搜索占位符标签

模板如下所示:

<f:form.textfield name="search[sword]" value="{sword}" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword form-control mr-sm-2 form-control-sm" placeholder="{f:translate(key: 'LLL:EXT:indexed_search/Resources/Private/Language/locallang.xml:form.submit')}" />
这是:

plugin.tx_indexed_search.locallang.default.form.submit = New Placeholder Text
但两者都不起作用

谢谢, rimmeh

试试这个:

plugin.tx_indexedsearch._LOCAL_LANG.default.form.submit = New placeholder text
对于德国人来说:

plugin.tx_indexedsearch._LOCAL_LANG.de.form.submit = New placeholder text

如果流体模板使用自定义扩展,请使用
并在扩展名中创建所有lacallang文件

你可以找到下面的代码

<f:form.textfield  name="search[sword]" value="{sword}" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword form-control" placeholder="{f:translate(key: 'form.submit', extensionName: 'your_extension_key')}"/>
您的代码将被删除

<f:form.textfield name="search[sword]" value="{sword}" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword form-control mr-sm-2 form-control-sm" placeholder="<f:translate key='{f:cObject(typoscriptObjectPath: \'lib.langFile\')}:form.submit'/>" />


我知道这很奇怪,但这是一个很好的解决方案

谢谢你的回复,但这不起作用。在Typo3 9中,索引搜索为9.5.5。是用下划线重命名的“tx\u index\u search”是正确的。感谢您的回复,但我不想使用自定义扩展名,只是想重命名占位符。我不敢相信这个简单而完全常见的任务在typo3中会出现这样的问题:d您使用了哪种模板方法?
lib.langFile=TEXT
lib.langFile.value=LLL:EXT:indexed_search/Resources/Private/Language/locallang.xm
[globalVar = GP:L = 1]
lib.langFile.value=LLL:EXT:indexed_search/Resources/Private/Language/de.locallang.xml
[end]
<f:form.textfield name="search[sword]" value="{sword}" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword form-control mr-sm-2 form-control-sm" placeholder="<f:translate key='{f:cObject(typoscriptObjectPath: \'lib.langFile\')}:form.submit'/>" />