Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Search Form

#1 2006-02-22 21:46:01

brentd
New Member
Registered: 2006-02-16
Posts: 8

Search Form

I am having problems getting my search form working. URL is http://www.33fortyfive.com

It doesn’t seem to go anywhere? Is there something I have done wrong?

Offline

#2 2006-02-22 22:35:45

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Search Form

“It” goes to the right place, look at the URL : http://www.33fortyfive.com/?q=word

But you need some tags in your default section’s page.

Try something like :

<txp:if_search>
<txp:article />
<txp:else />
what you have in your page now as for article's listing
</txp:if_search>

Offline

#3 2006-02-22 22:36:51

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Search Form

You need a <txp:article /> tag on your page where you want the search results to be displayed. The simplest way is something like this:
<code>
<txp:if_search>
<txp:article />
</txp:if_search>
</code>
Also make sure that there is a form ‘search_results’.

You can also have a look at this article.

Offline

#4 2006-02-23 01:11:18

brentd
New Member
Registered: 2006-02-16
Posts: 8

Re: Search Form

Almost works perfectly except for the error I keep getting.
Warning: extract(): First argument should be an array in /home/drasticthoug-com/www/textpattern/publish/taghandlers.php on line 983

Strange. I just followed the article you sent.

Offline

#5 2006-02-23 02:23:01

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

Re: Search Form

That’d be from using an article form (in this case “default”) with comment tags in it.

Offline

  1. Index
  2. » Archives
  3. » Search Form

Board footer

Powered by FluxBB