Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-02-14 16:07:19
- debegray
- Member
- Registered: 2009-02-04
- Posts: 30
Category link shows empty page
I’m sure that this is really obvious, but I’m doing my first installation and I still have a lot to learn.
When I click on the category link under an article, it takes me to a category page, on which I expected to see a listing of articles that have that category applied to them. However, the page is blank. This one, for instance: http://textpattern.wingofmadness.com/category/understanding-depression
Offline
Re: Category link shows empty page
A list of articles by category (such as you get from http://mysite.com/category/foo/
uses the default Page for display, and requires a <txp:article />
tag for it to show any articles.
A new Txp installation contains the following chunk on the default Page:
<txp:if_category> <h2><txp:category title="1" /></h2> <div class="hfeed"> <txp:article form="article_listing" limit="5" /> </div> <txp:else />
Does your default Page still have something like this? Does it still include the <txp:article />
tag?
In general it is easier to get answers to questions such as this if your site is in debugging mode. More info:
Code is topiary
Offline
#3 2009-02-14 17:25:53
- debegray
- Member
- Registered: 2009-02-04
- Posts: 30
Re: Category link shows empty page
Yes, that’s exactly what the code is. I haven’t changed it.
Offline
#4 2009-02-14 18:15:43
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Category link shows empty page
Are these articles’ section(s) set to display on the front page?
Offline
#5 2009-02-14 18:29:57
- debegray
- Member
- Registered: 2009-02-04
- Posts: 30
Re: Category link shows empty page
No, because I don’t want them on the front page. Do they have to be set to appear on the front page to have a link listing on the category page?
Offline
#6 2009-02-14 18:31:30
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Category link shows empty page
Yep.
Offline
#7 2009-02-14 18:46:14
- debegray
- Member
- Registered: 2009-02-04
- Posts: 30
Re: Category link shows empty page
Okay, great, that worked. Thanks for the help!
Last edited by debegray (2009-02-14 18:47:31)
Offline
#8 2009-02-14 19:21:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Category link shows empty page
You can avoid having to set them to appear on the front page by using the section
attribute in your category links.
Offline
Pages: 1