Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-07-01 10:07:42

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

txp:article_custom with section

Hi

I dont know if it s a bug or normal behaviour :

when writing this code :

<txp:article_custom category="mycat" />

it should give all article that are in category mycat and not limit to a particular section!

in my case it only gave me nothing, but the code :

<txp:article_custom category="mycat" section="mysection" />

Gave me the desired result.

In the documentation it says that when section is not set it means all section.

NB: the mysection section is pageless section.

Can someone confirme this behaviour ?

TXP 4.8.1

Offline

#2 2020-07-01 20:32:27

etc
Developer
Registered: 2010-11-11
Posts: 3,752
Website

Re: txp:article_custom with section

Hi Rabah,

IIRC, pageless sections will not be output unless called explicitly, or possibly by setting searchall attribute (to test):

<txp:article_custom searchall category="mycat" />

Offline

#3 2020-07-01 20:51:28

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

Re: txp:article_custom with section

Hi oleg,

Thanks for clarification.

Offline

Board footer

Powered by FluxBB