Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-11 02:34:06
- lucashaley
- Member
- Registered: 2005-02-17
- Posts: 11
I seem to have messed up searching
Heya all —
So in developing a site, I seem to have messed up searching. I have a search box going, but the page it returns has no contents.
My default page has the following:
<!-- center -->
<div id="content">
<txp:output_form form="motif-skull" />
<txp:article />
<txp:output_form form="motif-ship" />
<txp:if_individual_article>
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p>
<txp:older>Previous</txp:older>
<txp:newer>Next</txp:newer>
</p>
</txp:if_article_list>
</div>
And I have the default search-results form. Am I doing something wrong here?
Thanks!
-Lucas
Last edited by zem (2005-11-11 02:49:48)
Offline
#2 2005-11-11 02:51:19
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: I seem to have messed up searching
When you say “no contents”, do you mean a completely blank zero-length page, or that it displays a normal page with no articles?
Alex
Offline
#3 2005-11-11 02:54:31
- lucashaley
- Member
- Registered: 2005-02-17
- Posts: 11
Re: I seem to have messed up searching
Sorry, it renders the page, but has no results. I’ve used search terms that I know will return results.
Thanks —
-Lucas
Offline
#4 2005-11-11 04:46:44
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: I seem to have messed up searching
Do the appropriate sections have “Include in site search?” set to Yes under presentation > sections?
Alex
Offline
#5 2005-11-11 18:13:33
- lucashaley
- Member
- Registered: 2005-02-17
- Posts: 11
Re: I seem to have messed up searching
Yep. I just double-checked.
-Lucas
Offline
#6 2005-11-11 20:37:36
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: I seem to have messed up searching
A few things to (double) check:
Does the search input form really go to the section you think it does? Does that section really use the page template above?
Does the search term work when you search Title & Body from textpattern > content > articles?
Try some other search terms, including something trivial like a
.
Is the search results form named search_results
(not search-results
), and is the Type set to article
?
Alex
Offline
#7 2005-11-11 22:40:32
- lucashaley
- Member
- Registered: 2005-02-17
- Posts: 11
Re: I seem to have messed up searching
Alex —
thanks for all your help! You were right — my page named “default” was not actually the site default page. Once I added an <txp:article /> tag to the site default page, “home”, then it worked.
Thanks again.
-Lucas
Offline
Pages: 1