Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-01-31 14:43:45

neoformat
Member
From: Russia
Registered: 2007-02-17
Posts: 37
Website

How to display articles from category with prev / next navigation ...

Hello,

I have created my website all using textpattern. I would like to have a category with videos I want to publish online as a list of videos. I have created few articles with videos into the videos category. I want to display 3 videos per page, so I have created a page (called video) with <txp:body /> that uses own style and all videos in video category are using this page. I have created a form called video-listing with tag

<txp:excerpt />

Every video page has own excerpt with watch invite design. So when you click on watch invite excerpt you will go to the video page body. So I have also created new page that uses mentioned video page with this:

<txp:article_custom category=“video” form=“video-listing” sort=“Posted asc” limit=“3” />

So when I call this Archive page it there will be 3 excerpts displayed. But there are many more video pages I want to display on every page per 3 excerpts. But when I add <txp:newer /> and <txp:older /> tags – they do not work.

So I can display all articles excerpts from category all limit them to 3 but without prev / next navigation.

Please could you help me? You can see visually my website at _http://dimasnet.com

How is possible to move between articles in category?

Thank You Many times,
Dimas.

Offline

#2 2010-01-31 15:35:10

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,549
Website GitHub Twitter

Re: How to display articles from category with prev / next navigation ...

Hi

<txp:newer /> and <txp:older /> work with txp:article, but you can simulate the navigation using txp:variable and the plugin adi_gps and adi_calc.

build the link like this: yoursite.ru/?pag=2
get the pag variable using adi_gps
multiply per 3 using adi_calc
use <txp:article_custom offset=’<txp:variable name=“pag” />’ limit=“3” />
and then put the new next link adding 1.

This is a general use.

Cheers.

Offline

#3 2010-01-31 15:46:15

neoformat
Member
From: Russia
Registered: 2007-02-17
Posts: 37
Website

Re: How to display articles from category with prev / next navigation ...

Hello and thank you for reply,

I see it is so difficult, I have installed both plug-ins, could you please tell me more detailed how to do that please? Or maybe there is an example anywhere?

Thank you,
Dimas

Last edited by neoformat (2010-01-31 15:46:35)

Offline

Board footer

Powered by FluxBB