Textpattern Forum

You are not logged in. Register | Login | Help

#1 2008-11-06 23:54:09

marteueh
Member
Registered: 2008-11-06
Posts: 12

customize the button search

Hello
It’s possible to customize the button that starts the search with css?
you would you give me some suggestions on how to operate?
thanks

Offline

#2 2008-11-07 23:47:30

thebombsite
Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: customize the button search

The easiest way I have found is to replace the TXP tag with code similar to this:-

<form id="searchForm" method="get" action="<txp:site_url />search">
<p><input id="searchInput" type="text" name="q" value="" size="25" /><input id="searchButton" type="submit" value="Go" /></p>
</form>

This is similar to the code that the tag outputs but would allow you to add your own style hooks to use in your CSS. Note that I have a separate “search” section so you should adjust the “action” attribute to suit your site.

Last edited by thebombsite (2008-11-07 23:48:20)


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2008-11-09 02:21:28

marteueh
Member
Registered: 2008-11-06
Posts: 12

Re: customize the button search

Thanks for your advice
I solved the problem
compliments for your website that is very interesting
bye

Offline

#4 2009-09-30 05:26:16

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 362

Re: customize the button search

Dears
In this code… How do I indicate the specific form I want to use for the results ?
Thanks

Offline

#5 2009-09-30 11:36:24

uli
Moderator
From: Cologne/Köln
Registered: 2006-08-15
Posts: 3,088

Re: customize the button search

You put a searchform="form name" in your article tag


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Online

#6 2010-06-13 13:28:24

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Re: customize the button search

Hi, but when I use the html-code instead of the txp-search-tag…i can not show the word, the person typed in, on the search results page??!

Offline

#7 2010-06-21 05:53:58

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: customize the button search

Hi guys! How i can put my image button instead of button value “go” ?


<txp:txp_me />

Offline

#8 2010-06-21 08:05:37

Gocom
Developer
Registered: 2006-07-14
Posts: 4,476
Website

Re: customize the button search

Katalonian wrote:

Hi guys! How i can put my image button instead of button value “go” ?


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

#9 2010-06-21 11:00:36

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 1,599
Website

Re: customize the button search

jQuery UI is a good way of styling buttons, the bonus being someone else has done all the legwork in getting buttons to display identically in a wide selection of browsers…

jQuery UI Buttons

Offline

#10 2010-06-23 09:18:01

Katalonian
Member
From: Baku, Azerbaijan
Registered: 2010-04-18
Posts: 219
Website

Re: customize the button search

Guys, i created a search page from this tutor:
Search with Textpattern

But i can’t stylize search results with txp search tags. for example:

<div class=“search_blocks”>
<div class=“search_block”>
<div class=“search_topic”><txp:search_result_title /></div>
<div><txp:search_result_excerpt /></div>
<div class=“search_link”><txp:search_result_url /></div>
</div>

How to do?

Last edited by Katalonian (2010-06-23 09:19:47)


<txp:txp_me />

Offline

Board footer

Powered by FluxBB