Bug #21278
closedPre-fill Value for the search input field problem?
0%
Description
TYPO3 4.2
Indexed Search 2.11.1
This is the usual config line:
<input name="tx_indexedsearch[sword]" type="text" value="|" />
I changed it to:
<input name="tx_indexedsearch[sword]" type="text" value="Search" onfocus="Clear(this);" onblur="Clear(this);" />
I search for "TYPO3" string. Now if I hit the search button, then I get to the search results page. This is ok. Works well. The problem is that the value "TYPO3" which I searched for is pushed out of this tag and now it looks something like this:
<input name="tx_indexedsearch[sword]" type="text" value="Search" onfocus="Clear(this);" onblur="Clear(this);" />TYPO3
This messes my layout and I have no control over this text. I can make the text the same color as the background, which will make it "disappear" but still, it will be there and it will mess the layout
HELP? :)
Thanks
(issue imported from #M12243)
Updated by Dmitry Dulepov over 14 years ago
What kind of config line do you mean? It is all managed through the HTML template:
<input type="text" name="tx_indexedsearch[sword]" value="###SWORD_VALUE###" id="tx-indexedsearch-searchbox-sword" class="tx-indexedsearch-searchbox-sword sword" />
Updated by Tolleiv Nietsch over 13 years ago
- Status changed from Needs Feedback to Closed
- Target version deleted (
0) - TYPO3 Version set to 4.2
Closing this for the sake of a clean bugtracker - feel free to open it again once you're able to provide new input.