Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-12-17 18:58:11
- facho
- Member
- Registered: 2007-04-15
- Posts: 64
Help with Pre-filling Search box with text
I am trying to figure out how to add text to a search text filled. I want it to say something like “Type keywords and hit search button”. Normally, in XHTML I would use the <input….> tag with value=“type keywords etc…”
I’m not sure how to do this in TXP. Right now I am using the following tag for my search box:
<txp:search_input size=“10” label=”“ section=“search” />
I would appreciate someone providing guidence for this issue.
thanks!
Offline
#2 2008-12-17 23:47:29
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Help with Pre-filling Search box with text
As far as I know the only way to do that is by using XHTML instead of the txp tag. You can copy the XHTML output of the tag, replace the txp tag with that, and add the value attribute.
Offline