Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2006-10-09 13:59:14
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,304
Re: Categories and sections
Els wrote:
Oh sorry, you don’t have to write anything there. I just meant you have to add the attributes that you want to use (e.g. form=”…”, limit=”…” etcetera) in the article tag.
my code in default page:
bc..<txp:if_search>
<h3>Search results</h3>
<txp:if_category name=“Artiklid”>
<txp:article_custom category=“Artiklid” />
</txp:if_category>
<txp:if_category>
<txp:else />
<txp:article />
</txp:if_category
<p><txp:search_result_count />.</p>
<txp:else />
<txp:article listform=“excerpt” />
</txp:if_search>
<txp:if_article_list>
<p><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_article_list>
both article sections set to front page. but nothing happens, all blank :( I dont get it. my homepage
Offline
#14 2006-10-09 14:48:10
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Categories and sections
Nothing shows up because everything is wrapped in the if_search tag. Try this:
bc..<txp:if_search>
<h3>Search results</h3>
<p><txp:search_result_count />.</p>
</txp:if_search>
<txp:if_category name=“Artiklid”>
<txp:article_custom category=“Artiklid” />
<txp:else />
<txp:article listform=“excerpt” />
</txp:if_category>
<txp:if_article_list>
<p><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_article_list>
Offline