Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-04 18:01:08

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Search won't work? Basic Question

Before i begin I just want to say I searched the forums and could not find a recent article with a similar problem. I apologize if I overlooked something though.

Here is the problemhttp://69.73.162.81/~jcloseto/ if you click on Franksarea and use the search it just takes you to the default home page. I know it is a simple fix but I don’t know what it is to do. I am trying to piece together from the list of tags in textbook to see if I can make it work but I am at a loss.

I currently have the default search results tag in franksarea. Any help would be greatly appreciated.


Grrr RRR nnndth grrr Skeek!

Offline

#2 2006-08-04 18:30:04

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Search won't work? Basic Question

The search input uses the default page template, so you have two options:

  1. A better Textpattern Search
  2. Use a conditional on the default page. EX:

<pre>
&lt;txp:output_form form=&quot;dtd&quot; /&gt; &lt;!—output doctype, if you’ve got such a form (not req’d) —&gt; &lt;txp:if_search&gt; &lt;h3&gt;Search Results&lt;/h3&gt; &lt;txp:article limit=&quot;40&quot; /&gt; &lt;p&gt; &lt;txp:newer&gt;Previous Results | &lt;/txp:newer&gt; &lt;txp:older&gt;Next Results&lt;/txp:older&gt; &lt;/p&gt; &lt;txp:else /&gt; &lt;!—display regular homepage—&gt; &lt;txp:article form=&quot;home&quot; /&gt; &lt;/txp:if_search&gt;
&lt;txp:output_form form=&quot;_footer&quot; /&gt;
</pre>

If your page is pretty complex (ex: multiple conditionals), you might be better off using the plugin glx_if.

Offline

#3 2006-08-04 19:44:28

WhiteDog
Member
From: Maine
Registered: 2005-09-07
Posts: 174

Re: Search won't work? Basic Question

Thank you, You have been a real life saver!


Grrr RRR nnndth grrr Skeek!

Offline

Board footer

Powered by FluxBB