Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-04-12 09:57:26
- hilary
- Member
- Registered: 2006-09-11
- Posts: 37
display articles added under category
Hi Guys!
I’m sure you’ll be groaning at my very basic question!
I have never used categories before, just sections, so Im struggling with this..
I have a section called ‘france’, and I have various categories that are regions within france, I need to use these as a sidenav, so I have them displayed in a list at the side
*If I select the section as ‘article’, and the category of any of the regions, then add an article using that category and section, it displays perfectly when I click on the category..
If I select the section as ‘france’, and the category of any of the regions, then add an article using that category and section, it displays nothing under the category, and displays the article under the section ‘france’*
Is it possible to have articles come up regardless of the section, under the category link? So if something is marked as France, and Alcace, it will appear under the section france, and under the category Alcace…??
Heres my code for displaying articles..
<code>
<txp:if_search>
<txp:else />
<txp:article form=“default” status=“sticky” />
</txp:if_search>
<txp:article form=“default” status=“live”/>
<txp:if_individual_article>
<p class=“back”>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev></p>
<p class=“next”><txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
<txp:if_article_list>
<p class=“more”>
<txp:older>< Next Page</txp:older>
<txp:newer>Next Page></txp:newer>
</p>
</txp:if_article_list>
</code>
Any help GREATLY appreciated!!
ADDED: I just changed the section France to appear on the front page, and when I did, the article appeared on the category page as it should, if I change the setting to ‘does not appear on front page’, the article dissapears from the category again, and is only viewable from the section page…. Im so stuck!!!
Do you think it is only happening because of messy urls? I’m only using a local server, so will it work with clean urls when it goes live??
Last edited by hilary (2007-04-12 11:20:57)
Offline
#2 2007-04-12 14:30:28
- hilary
- Member
- Registered: 2006-09-11
- Posts: 37
Re: display articles added under category
Ok, I did it!
I just needed a plugin, and it made it work perfectly!
cbs_category_list
Thats the name of the plugin for anyone else who has a similar problem!
Offline
Pages: 1