Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-28 10:02:28

lisionosk
Member
From: Switzerland
Registered: 2006-02-10
Posts: 99

Posts don't show on category pages

I’m using the rss_unlimited_categories plugin to list the categories a post is filed under. This is what is in my post form:

<txp:rss_unlimited_categories_filedunder section="log" linktosection="log"  />

When I click on a category link, it leads to a clean url category page, but no posts ever show on that page. I remember category pages use the default page template, so is there something I should add on it for posts to show on a category page ?

So far, this is what I have:

<txp:if_individual_article>
  <txp:article section="log" form="Single" limit="1" sortby="Posted" sortdir="desc" />
  <div id="nav">
  <txp:link_to_prev>&laquo;</txp:link_to_prev>
  <txp:link_to_next>&raquo;</txp:link_to_next>
  <txp:else />
  <txp:article form="default" limit="15" section="log" sortby="Posted" sortdir="desc" />
  <div id="nav">
<txp:older>&laquo;</txp:older> <txp:newer>&raquo;</txp:newer></txp:if_individual_article>
   </div>

Added bc. – Gocom

Last edited by Gocom (2009-06-28 11:19:31)

Offline

#2 2009-06-28 11:27:21

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Posts don't show on category pages

Do you have articles auto appending on the frontpage? If not you will need to set it so, or use article_custom. article is context sensitive tag and will only display articles from the current section (or appending).

But because you are using rss_unlimited_categories, and not the inbuild category system, you might want to use it’s own tags; TXP’s inbuild tags won’t support unlimited categories that are stored in seperate table. Note: <txp:rss_unlimited_categories_article_list />.

Also note that <txp:article /> doesn’t have attribute section (note: section="log").

Offline

#3 2009-06-28 11:44:13

lisionosk
Member
From: Switzerland
Registered: 2006-02-10
Posts: 99

Re: Posts don't show on category pages

I have the ‘log’ section auto-appended (from the Sections page where it says On front page?). I have tried to use article_custom but when I do, the older/newer links disappear. Could you please show me how to write my article_custom tag in order for those links to still show ?

Offline

#4 2009-06-28 11:58:33

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Posts don't show on category pages

lisionosk wrote:

I have the ‘log’ section auto-appended (from the Sections page where it says On front page?). I have tried to use article_custom but when I do, the older/newer links disappear. Could you please show me how to write my article_custom tag in order for those links to still show ?

As I said:

But because you are using rss_unlimited_categories, and not the inbuild category system, you might want to use it’s own tags; TXP’s inbuild tags won’t support unlimited categories that are stored in seperate table. Note: <txp:rss_unlimited_categories_article_list />.

So, use the plugin’s tags instead of TXP’s core tags. And:

Also note that <txp:article /> doesn’t have attribute section (note: section=“log”).

Offline

Board footer

Powered by FluxBB