Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-22 01:37:22

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

How do I create a page of articles in a section?

Hello, I need a little help please! I would like to use a category list and when you click on the category, be taken to a page that lists out each article for that category.

I understand how to create the category list, that is no problem. My problem is when you click the category it goes to a page that has the correct path in the address bar, but the page is my default index template. You can see what I mean on my site. <a href=“http://www.digitalrealmmedia.com/blog/”>DigitalRealm</a>

Right below the title, I have the section it is in, when you click that, you get the index page minus the images?!

Any help on repairing this little problem? Thanks!

Offline

#2 2006-07-22 04:27:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: How do I create a page of articles in a section?

It’s okay: by default, category urls use the “default” page.

What you want to do is put something like the following in your default page:

<txp:if_category>

	<!-- we're trying to view a category list! -->
	<!-- customize how you want your category list to look -->

	<txp:article />

<txp:else />

	<!-- we're just trying to view the front page -->
	<!-- put your front page content here -->

	<txp:article />

</txp:if_category>

Obviously the example I gave doesn’t do much, but hopefully it is clear what to do? :)

Offline

#3 2006-07-22 05:23:41

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: How do I create a page of articles in a section?

Ok I see what you are saying, I will try this out and see how it goes. I understand what you are saying and I see the logic behind it so it shouldn’t be to hard to figure out. Thanks for the help!

Offline

Board footer

Powered by FluxBB