Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-28 09:35:16

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Setting up a search page

I am in the process of creating a separate search page.

Problem is that the search form is not sending the search request to the search “template section”

<txp:search_input section="search"  wraptag="p" />

which outputs:-

<form method="get" action="http://meanttoshine.org/weblog/index.php?s=search">
<p>Zoek<br/><input type="text" size="15" value="" name="q"/></p>
</form>

I have had to place the “search” output_form on the default page because the form is not taking me to the search section.

Can any see why?


I think, therefore I AM, … … er … I think :-?

Offline

#2 2007-09-28 09:49:53

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

Re: Setting up a search page

Have you created a “search” “section” that uses your new search page template?


Stuart

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

Offline

#3 2007-09-28 10:07:35

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Setting up a search page

Yep, section is called “search”


I think, therefore I AM, … … er … I think :-?

Offline

#4 2007-09-29 08:11:39

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Setting up a search page

…. i know it’s not logical is it :-?


I think, therefore I AM, … … er … I think :-?

Offline

#5 2007-09-29 19:47:35

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Setting up a search page

If it doesn’t wan’t to work, then just hardcode it.

Example:

<form action="<txp:site_url />/search" method="get" id="search"><input type="text" name="q" value="" class="search" /><input type="submit" value="Search" id="submit"/></form>

Note also, that you need the search_form attribute in your article tag on that temlate, in order to display the results, they way you want it.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#6 2007-09-30 15:16:34

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: Setting up a search page

Hey marios, thanks for the pointers. Helped me solve it ;-D

Well it works fine when i use clean url’s. (using txp tags also).
Until today i wasn’t able to use clean url’s because of other problems but those are resolved.

The reason it wasn’t working is because of the messy url is wrong. action="http://meanttoshine.org/weblog/index.php?s=search/
What’s wrong with it? I would still be interested to understand what exactly is incorrect with the URL?

It keeps outing http://meanttoshine.org/weblog/index.php?q=X (where x is the search value)

Last edited by Timid&friendly (2007-10-01 15:56:26)


I think, therefore I AM, … … er … I think :-?

Offline

Board footer

Powered by FluxBB