Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2009-06-25 11:39:35
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: Create category page
Hi everyone! I have a similar problem so I write here…I was able to reproduce all you suggest to have the list of category on my left side menu, but in this way when I select a category I obtain only the category list of that section.I would like to have in the menu only the text “category” that output (in the central part of the page) the list of all categories. For example, the menu I want is like this:
Section 1
Section 2
Section 3
Categories
and I would like that:
- selecting “Section 1”, it shows on the content part of the page (center) all the articles of Section 1
- (the same thing for Section2 and Section3)
- selecting “Categories”, it shows all the categories like this:
Section 1:
article 1.1 (linked to the article)
article 1.2 (linked to the article)
Section 2:
article 2.1 (linked to the article)
article 2.2 (linked to the article)
is it possible? what kind of code I have to write and where? (I don’t want to use plugins)
- thankyou and sorry for my bad english -
Offline
#14 2009-06-25 15:01:13
- matthijs
- Member
- Registered: 2008-12-15
- Posts: 32
Re: Create category page
My problem isn’t solved completely. With my existing site, when I have added a list of categories on my projects page
<li><a href="/projects/castels">castels</a></li>
<li><a href="/projects/homes">homes</a></li>
When clicking on one of the links, I don’t get to see any result. My guess is that in my templates (in txp language “pages”) I miss the right code to display something when visiting /category/{somecategory}. What I need to see is a list of projects.
I probably need something with <txp:if_category> … but what within that? txp:article_custom or txp:article?
And where would I have to place the code? In which of the templates? The template (page) used for the section in which the category is used?
Offline