Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-07 14:17:45

ctrl4ltdeleteme
New Member
Registered: 2008-10-07
Posts: 2

Conditional or txp variable for counting articles

Hello,
Is there a conditional which has the same effect as <txp:if_search_results max="0"> only for articles instead of search results?

Also, a txp built-in variable that kept track of the same thing would work for my purposes.

I’ve looked around and found a few plugins but none of them seem to be conditional, they are for returning the count of articles.

Offline

#2 2008-10-07 14:27:55

ctrl4ltdeleteme
New Member
Registered: 2008-10-07
Posts: 2

Re: Conditional or txp variable for counting articles

Hah, I’m retarded. http://textpattern.org/plugins/732/pm_if_no_articles

This plugin actually does everything I want it to but it doesnt take into account the current section of the page, is there another way to reference that?

Last edited by ctrl4ltdeleteme (2008-10-07 15:22:58)

Offline

#3 2008-10-07 15:27:59

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

Re: Conditional or txp variable for counting articles

maybe chh_if_data can help you!

Cheers

Offline

Board footer

Powered by FluxBB