Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Re: Setting up a search page
Yep, section is called “search”
I think, therefore I AM, … … er … I think :-?
Offline
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
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
Pages: 1