Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Searching

#1 2007-06-09 01:02:09

Ji31
Member
Registered: 2005-08-24
Posts: 103

Searching

Hi,

because I need to use the class for the text search input and image type for button, I have used this code instead <txp:search_input />:

<form action="http://my.site.com/" method="get" id="searchform"><input type="text" name="q" value="" size="15" class="input" />
<input class="searchbtn" src="/images/site/nav_search_btn.gif" id="searchsubmit" type="image">
</form>

But when I search, I get just blank page (design is ok, but the place with articles is blank).
I'm not sure, if it depends on that code. But I have nowhere insterted <txp:search_title /> etc.

Where it should be?

Thanx

Offline

#2 2007-06-11 03:23:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Searching

Searches use the default page and the article tag (and uses the search_results form by default). Do you have an article tags in your default page? If not add it, using if_search if necessary.

Offline

  1. Index
  2. » Archives
  3. » Searching

Board footer

Powered by FluxBB