Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2010-07-28 01:55:31
- WebKat
- Member
- Registered: 2007-01-16
- Posts: 301
Very simple, but forgot how: category and article list question
I haven’t mucked around with my templates in quite a long time so I’ve forgotten how to do a lot of things. I’ve set up a site for a friend now using Textpattern and for the life of me I can’t get this simple thing working. What I need is that if the page is a category, it displays a list of articles (let’s say, limit 50) or if it’s an individual article, it just shows that one article. Simple, I know. Yet what I’m getting is an article for an article, or a list of 1 article only for category pages. Can someone pretty please show me this embarrassingly stupid tag setup? I did look in the tag reference but the stuff I’ve tried isn’t working and I’m on a time crunch with how much time I can put into researching this site (which I’m doing free, as a favor) which needs to go live by this weekend.
Thanks so much,
a very embarrassed Opal.
—
WebKat
Offline
Re: Very simple, but forgot how: category and article list question
OpalCat wrote:
what I’m getting is an article for an article, or a list of 1 article only for category pages.
Are you using the txp:article or txp:article_custom tag? Check that you don’t have limit=“1” or that you have only one article assigned to the category. This is probably not the case, but just checking.
To get a better picture, can you give a short tag snippet of what is on your page?
Offline
#3 2010-07-28 05:28:38
- WebKat
- Member
- Registered: 2007-01-16
- Posts: 301
Re: Very simple, but forgot how: category and article list question
<txp:if_category>
<h2><txp:category title="1" /></h2>
<div class="hfeed">
<txp:article form="article_listing" limit="100" />
</div>
<txp:else />
<txp:if_search>
<h2><txp:text item="search_results" />: <txp:page_url type="q" /></h2>
<div class="divider"><txp:image id="1" /></div>
</txp:if_search>
<div class="hfeed">
<txp:article limit="100" />
</div>
</txp:if_category>
—
WebKat
Offline
Re: Very simple, but forgot how: category and article list question
I don’t see anything wrong that would be causing it to display only one article on category pages, as long as you have more than one article assigned to that category, I’ll have the kick the can down the road on this one, I hope someone smarter than me can help you : (.
Offline
Re: Very simple, but forgot how: category and article list question
It appears you’ve made only small changes to the stock default page template, so it ought to be working. Have a look through the tag trace for a category page or post it here.
Code is topiary
Offline
#6 2010-07-29 03:39:27
- WebKat
- Member
- Registered: 2007-01-16
- Posts: 301
Re: Very simple, but forgot how: category and article list question
Thanks for reminding me about tag trace—the problem was it was looking at the wrong page template! DOH!
—
WebKat
Offline