Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-03-15 23:19:49

Adam
Member
Registered: 2005-07-14
Posts: 16

Paginating category & section pages

I’m working on an ecommerce site and I have sections and categories that solely display the products’ images with a link to their individual pages. The sections are holidays, and the categories are subsets of some holidays. I want to show 8 products in each section and each category as well with the option to navigate through pages if the total amount of products for that holiday is more than 8.

Any way to do that?


If you have no confidence in self, you are twice defeated in the race of life. With confidence, you have won even before you have started. –Marcus Garvey

Offline

#2 2006-03-16 00:25:32

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Paginating category & section pages

<blockquote>I want to show 8 products in each section and each category as well with the option to navigate through pages if the total amount of products for that holiday is more than 8.</blockquote>

The <a href=“http://textpattern.net/wiki/index.php?title=Txp:older”>txp:older</a> and <a href=“http://textpattern.net/wiki/index.php?title=Txp:newer”>txp:newer</a> tags should work for you. Just limit the article list to 8 articles, and then include the pagination tags in your template.

Offline

#3 2006-03-16 00:42:20

Adam
Member
Registered: 2005-07-14
Posts: 16

Re: Paginating category & section pages

It doesn’t seem to work


If you have no confidence in self, you are twice defeated in the race of life. With confidence, you have won even before you have started. –Marcus Garvey

Offline

#4 2006-03-16 00:43:41

Elenita
Member
From: Falls Church, VA
Registered: 2004-05-16
Posts: 407
Website

Re: Paginating category & section pages

What does your code look like?

Offline

#5 2006-03-16 01:01:52

Adam
Member
Registered: 2005-07-14
Posts: 16

Re: Paginating category & section pages

txp:article_custom limit=“8” section=“Shabbat” sortby=“Posted” sortdir=“desc” listform=“Product” /

<div id=“pagein”>txp:older Older /txp:older
txp:newer Newer /txp:newer
</div>

Last edited by Adam (2006-03-16 01:04:50)


If you have no confidence in self, you are twice defeated in the race of life. With confidence, you have won even before you have started. –Marcus Garvey

Offline

#6 2006-03-16 01:23:53

bartekk
Member
Registered: 2004-11-09
Posts: 57

Re: Paginating category & section pages

Hi Adam,

txp:older / txp:newer doesn’t work with article_custom try chh_article_custom

Offline

#7 2006-03-16 01:25:16

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Paginating category & section pages

This is in the FAQ. Please read it before posting.


Alex

Offline

#8 2006-03-16 01:26:28

Adam
Member
Registered: 2005-07-14
Posts: 16

Re: Paginating category & section pages

Yes, Zem. I know it doesn’t work with custom. That’s why I was asking how I can do this.


If you have no confidence in self, you are twice defeated in the race of life. With confidence, you have won even before you have started. –Marcus Garvey

Offline

#9 2006-03-16 01:34:58

Adam
Member
Registered: 2005-07-14
Posts: 16

Re: Paginating category & section pages

Thank you, bartekk. But that doesn’t work either. Any idea why?


If you have no confidence in self, you are twice defeated in the race of life. With confidence, you have won even before you have started. –Marcus Garvey

Offline

#10 2006-03-16 01:41:21

Adam
Member
Registered: 2005-07-14
Posts: 16

Re: Paginating category & section pages

Zem, it’s working now, thank you. I just didn’t know that article can take the same attributes as custom article because of the options you have when you click ‘Articles (single or list)’ under Useful Tags, you only have 3 options.


If you have no confidence in self, you are twice defeated in the race of life. With confidence, you have won even before you have started. –Marcus Garvey

Offline

Board footer

Powered by FluxBB