Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-09-04 12:42:50

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

Add child listing for txp:article

Hi

I am thinking about the logic of txp:article, it s context sensitive and it s good, but when you list a category articles you havent child category article listed, how to add something like children=“1” to txp article (like in txp:category_list) and then it will work like this:

<txp:article children=“1” /> when you are in a category listing (http://yoursite/?c=mycat) you will list all article from mycat an all article from mycat child!

Do you think this logical behaviour with context sensitive?

Thanks.

Offline

#2 2011-09-04 12:50:05

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Add child listing for txp:article

Can’t you do that already using:

<txp:article_custom category='<txp:category_list parent=''<txp:category />''  break="," />' />

Offline

#3 2011-09-04 17:01:56

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

Re: Add child listing for txp:article

Yes with article_custom but not with txp:article.

Offline

Board footer

Powered by FluxBB