Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-04-07 23:09:11
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
How do I use the search tag with...
Ok here’s the deal. I have a template with a style search box. How do I get the search from txp in here?
<li class=“Search”>
<form action=”/search/” method=“get”>
<img src=“http://www.jotzeo.com/images/search.gif” alt=“Search”>
<input class=“Text” name=“search” type=“text”><img style=“cursor: pointer;” src=“http://www.jotzeo.com/images/go.gif” alt=“Go” class=“FormSubmit”></form>
thanks again in advance!
Offline
#2 2007-04-08 18:08:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How do I use the search tag with...
I am not entirely sure of what you’re asking for…
<li class="Search">
<form method="get" action="/search/">
<img src="http://www.jotzeo.com/images/search.gif" alt="Search" />
<input type="text" name="q" class="Text" />
<input type="image" src="http://www.jotzeo.com/images/go.gif" alt="Go" class="FormSubmit" />
</form>
Or are you asking about something about the “search” section/page?
Offline
#3 2007-04-08 22:18:41
- wspence
- Member
- Registered: 2006-09-03
- Posts: 84
Re: How do I use the search tag with...
what i meant was how do take that html markup and css and apply it to <txp:search_input button=”“ label=”“ size=“25” /> or how do i style this? merely place it where the form is currently?
Offline
Re: How do I use the search tag with...
You can create a form called “search_input” which is the default – see here for more info:
http://textbook.textpattern.net/wiki/index.php?title=Txp:search_input_/#Example_1:_Display_a_search_input_form
Offline