Project

General

Profile

Actions

Bug #21278

closed

Pre-fill Value for the search input field problem?

Added by Darko Jr. Gonzalez almost 15 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-10-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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" />

Actions #2

Updated by Tolleiv Nietsch about 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.

Actions

Also available in: Atom PDF