Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2019-05-29 08:15:56

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,892
Website

Re: count the number of articles

etc wrote #318288:

The idea was to select all articles having a “visible” status, be it live, sticky or some future one. You can not output “hidden” statuses anyway, by privacy concern.

Excellent! And makes sense. Thanks for clarifying.


TXP Builders – finely-crafted code, design and txp

Offline

#12 2020-07-15 11:02:10

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 257
Website

Re: count the number of articles

This works perfectly. Thank you very much!

One question:

How can I add a comma as a thousands separator for the resulting number?

“6,357 images” instead of “6357 images”


JapaneseStreets.com – Japanese street fashion (mostly txp)
Old Photos of Japan – Japan between 1860 and 1940 (100% txp)
MeijiShowa – Stock photos of Japan between 1860 and 1940 (100% txp)

Offline

#13 2020-07-15 12:00:35

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

Re: count the number of articles

Kjeld wrote #324536:

How can I add a comma as a thousands separator for the resulting number?

“6,357 images” instead of “6357 images”

Try adding escape="number" attribute to the outputting tag.

Offline

Board footer

Powered by FluxBB