Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-07-26 09:53:41
- beechy
- Member
- Registered: 2006-03-02
- Posts: 92
seperate page for search using messy urls
I have used textpattern on an existing website this used clean urls,
I now have a new site setup but cant use clean urls as the server doesn’t seem to allow them.
On the site that allowed clean urls I was using a seperate page for the search results with:
<form action=”<txp:site_url />search/” method=“get” class=“myClass”>
<input type=“text” name=“q” value=”“ size=“25” class=“search-text-box” />
<input type=“submit” value=“Search” class=“search-button” />
</form>
I have setup my site that uses messy urls in exactly the same way ie seperate section for search and a seperate search page.
I am currently using:
<div id=“search”>
<form action=”/index.php?s=search” method=“get” class=“myClass”>
<input id=“search-input” type=“text” name=“q” value=”“ size=“25” class=“search-text-box” />
<input type=“submit” value=“Search” class=“search-button” />
</form>
</div>
However this just uses my default page to display search results and because I have setup some custom fields for meta tags and descriptions I get the search results outputted in the <head></head> as well as the body of the article.
How do I use a seperate page for the search using messy urls.
Last edited by beechy (2007-07-26 09:54:55)
Offline
#2 2007-07-26 13:27:37
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: seperate page for search using messy urls
Try this:
<div id="search">
<form action="<txp:site_url />" method="get" class="myClass">
<input id="search-input" type="text" name="q" value="" size="25" class="search-text-box" />
<input type="hidden" name="s" value="search" />
<input type="submit" value="Search" class="search-button" />
</form>
</div>
Offline