Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-11-25 06:52:31

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

Showing stats on your site

If you ever need to show site stats on your site, this little tidbit may be helpful.

On my about page, I have the following text:

As of July 20, 2020, a total of 6407 images have been archived and uploaded to this site:

• Photographs: 5118
• Art & Prints: 1166
• Maps: 123

And this is the code that I used:

In the article:

 As of *<txp:article_custom section="photography,art-prints,maps" sort="Posted desc" limit="1" form="posted_date_last_article" />*, a total of *<txp:article_custom section="photography,art-prints,maps" pageby="1" pgonly /> images* have been archived and uploaded to this site:

* Photographs: <txp:article_custom section="photography" pageby="1" pgonly />
* Art & Prints: <txp:article_custom section="art-prints" pageby="1" pgonly />
* Maps: <txp:article_custom section="maps" pageby="1" pgonly />

In the posted_date_last_article form:

<txp:posted format="%B %e, %Y" />

Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#2 2020-11-25 07:02:02

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

Re: Showing stats on your site

Perhaps helpful for creating things like this?

Last edited by Kjeld (2020-11-25 07:02:55)


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#3 2020-11-25 08:27:50

TNT
Member
From: Rotterdam, Netherlands
Registered: 2006-01-06
Posts: 256
Website

Re: Showing stats on your site

Great snippet! Thanks!


Prrrrrrrr

Offline

#4 2020-11-25 08:46:04

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

Re: Showing stats on your site

TNT wrote #327034:

Great snippet! Thanks!

😉👍🏻


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

#5 2020-11-25 21:10:46

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,072
Website Mastodon

Re: Showing stats on your site

😉👍🏻

i like all your websites. i had a pleasant time browsing through your Old Photos of Japan .. Just lovely!

Is your DUITs one a Txp site?

congratulations.


…. texted postive

Offline

#6 2020-11-26 01:48:01

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

Re: Showing stats on your site

bici wrote #327066:

i like all your websites. i had a pleasant time browsing through your Old Photos of Japan .. Just lovely!

Is your DUITs one a Txp site?

congratulations.

Thank you very much!

The DUITS site is 100% flat file, no CMS used. I designed and coded it from scratch using BBedit. Although I designed and built it about three years ago, it actually only went live last Tuesday!

By the way, I love the design of your site as well!

Last edited by Kjeld (2020-11-26 01:50:18)


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

Board footer

Powered by FluxBB