Your Ad Here

EntryCount plugin

Update: This plugin isn’t needed. As Neil pointed out, there’s a built-in MT tag that already does this. Somehow I overlooked that when I was writing the plugin. So ignore all this drivel…

Here’s a quickie plugin to close out the year.

Jeff Nichols asked, “Does anyone know of an easy way to get a current entry count (post count) for Movable Type?” A quick look for a plugin that would do this turned up nothing so I whipped one up for him.

To install it, download EntryCount.zip, unzip it, and upload EntryCount.pl to your plugins directory.

To use it, add the tag <MTEntryCount> to your template. The tag will will output the number of published entries to your blog. Draft entries are not included in the count, and only entries from the current blog are counted. Typical usage would be something like…

<MTEntryCount> entries

Neil T.
December 31, 2003 2:42 PM

What is the difference between this tag and - that tag already gives the total number of posts to a weblog. I’ve used it for some time.

Adam Kalsey
December 31, 2003 2:55 PM

Oh, fine, get all logical on me… Somehow I missed the fact that there was a built-in tag that already did this.

Maggie
January 1, 2004 5:21 PM

If you don’t mind my asking, what is the built-in tag?

Adam Kalsey
January 1, 2004 5:39 PM

MTBlogEntryCount

Maggie
January 2, 2004 4:42 PM

For the number of words in an entry?

Maggie
January 2, 2004 5:02 PM

Thank you so much Adam!! Got it!!

This discussion has been closed.

Lijit Search

Best Of

  • Customer reference questions. Sample questions to ask customer references when choosing a software vendor.
  • Embrace the medium The Web is different than print, television, or any other medium. To be successful, designers must embrace those differences.
  • Lock-in is bad T-Mobile thinks they'll get new Hotspot customers with exclusive content and locked-in devices.
  • Writing Realistic Job Descriptions Publish a job listing like this one and you are virtually guaranteeing that you won't get qualified applicants for the position.
  • Newly Digital Newly Digital is an experimental writing project. I've asked 11 people to write about their early experiences with computing technology and post their essays on their weblogs. So go read, enjoy, and then contribute. This collection is open to you. Write up your own story, and then let the world know about it.
  • More of the best »

Recently Read

Get More

Subscribe | Archives

Recently

Sprout Test (May 7)
A test post for Sprout widgets.
Product Leadership (May 3)
An anthology of product leadership writing.
Fighting Monster patent claims (Apr 16)
The patent bully picked on the wrong little guy.
Peavy's pine tar (Apr 6)
Jake Peavy's cheating
Bush and Morgan on inner city baseball (Mar 30)
Morgan and Bush discuss the role of baseball in the inner cities.
Not a fork (Mar 27)
We have no intention of forking Drupal. That would be nuts. So what are we doing then?
Eating our dogfood in the sausage factory (Mar 26)
Recursive development for the new Drupal powered community platform.

Subscribe to this site's feed.

Elsewhere

Feed Crier
Get alerted by IM when your favorite web sites and feeds are updated.
SacStarts
The Sacramento technology startup community.
Pinewood Freak
Pinewood Derby tips and tricks
Del.icio.us
My tagstream at del.icio.us.
Waddlespot
My son's Club Penguin community. News, blogs, tips, and tricks.

Contact

Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

AIM or Skype: akalsey

Resume

PGP Key

©1999-2008 Adam Kalsey.
Content management by Movable Type.