Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-02-09 11:35:43
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Restricting "Recent entries" or "Categories" to a section
Hi,
I have different sections into which I post either articles or photos. I would like each section to have its own list of “Recent entries”,, “Recent comments”, “Categories”, ect. Right now, when I use those tags, they list recent articles or categories across ALL sections. How can I restrict each tag to only output recent articles or categories for the section I want ?
Thank you very much!
Offline
#2 2007-02-09 13:15:50
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Restricting "Recent entries" or "Categories" to a section
These are the tags I wrote:
<code><ul id=“foot1”><li>Recently<ul><txp:recent_articles section=“journal” break=“li” label=“0” limit=“9” sort=“Posted desc” /></ul></li></ul>
<ul id=“foot2”><li>Categories<ul><txp:category_list this_section=“1” break=“li” label=“0” type=“link” /></ul></li></ul></code>According to this page, it should work: http://textbook.textpattern.net/wiki/index.php?title=Txp:category_list_/ …
Last edited by lisionosk (2007-02-09 13:16:35)
Offline
#3 2007-02-15 14:16:28
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Restricting "Recent entries" or "Categories" to a section
Hi again,
My URL is http://urbangriffin.com and I still can’t restrict my Recent Entries and Categories to the one section I chose. The Recent Entries list all sections’ entries and the Categories, for some reason, list the ‘Links’ categories. Please, can someone help me figure this out ?
Offline
Re: Restricting "Recent entries" or "Categories" to a section
Let me understand…
You wish to have the front page have only articles from a particular section?
Or is it that you want the front page to list all articles (10 at a time…) and then have the sections listing articles belonging to them?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2007-02-15 16:12:12
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Restricting "Recent entries" or "Categories" to a section
Hi,
Yes, I would like the frontpage to have only a list of links to the Recent Entries and Categories of one particular section. I have aother sections (photolog, words) which are seperate and whose articles are not displayed on the frontpage but on their own sections. So it does not make sense for the frontpage RC or Categories to list them, too. I thought with section=“journal”, it should work, but apparently not.
Offline
Re: Restricting "Recent entries" or "Categories" to a section
Categories and sections are different, but equal, ways of organizing your articles. Out of the box, categories are not restricted to a single section.
If you want that functionality, I’m pretty sure the cbs_category_list plugin is what you need.
Last edited by Elenita (2007-02-15 17:21:29)
Offline
#7 2007-02-15 19:08:42
- lisionosk
- Member
- From: Switzerland
- Registered: 2006-02-10
- Posts: 99
Re: Restricting "Recent entries" or "Categories" to a section
Thank you, Elenita, works like a charm!
Offline