Immovable Type?
September 24, 2007 3:39 PM
Movable Type question involving the counting and sequential numbering of entries within one specific blog on a multi-blog system.
Let's say I have six Movable Type blogs on the same system/install, each containing 100 entries.* I create a new seventh blog, with only 5 entries in that one. Within the individual entry archive template for the seventh blog, how do I structure my tags to output "this is entry #N of 5 in this blog" on the resulting pages? (N would be replaced by the actual sequential order of that entry in the blog, such as "3 of 5", "4 of 5", etc., as determined by either the entry's published date or just the sequence in which the entry was added to the blog, it doesn't matter.)
It sounds simple (and maybe I'm missing something here), but the only likely tag I've found for this, MTEntryID, exports the system ID of the entry in question (which could be #703 or something, or 000703 if you use leading zeroes). That is, it's being counted sequentially relative to the overall install/system, and not to the one blog in which I'm interested.
I can get a total count of entries within just the seventh blog -- the "...of 5..." part -- using MTBlogEntryCount, so that's no problem. But isn't there something similarly blog-specific with regards to entry numbering?
*In actuality, the largest MT install I manage has 95 blogs on it and over 400,000 comments.
Let's say I have six Movable Type blogs on the same system/install, each containing 100 entries.* I create a new seventh blog, with only 5 entries in that one. Within the individual entry archive template for the seventh blog, how do I structure my tags to output "this is entry #N of 5 in this blog" on the resulting pages? (N would be replaced by the actual sequential order of that entry in the blog, such as "3 of 5", "4 of 5", etc., as determined by either the entry's published date or just the sequence in which the entry was added to the blog, it doesn't matter.)
It sounds simple (and maybe I'm missing something here), but the only likely tag I've found for this, MTEntryID, exports the system ID of the entry in question (which could be #703 or something, or 000703 if you use leading zeroes). That is, it's being counted sequentially relative to the overall install/system, and not to the one blog in which I'm interested.
I can get a total count of entries within just the seventh blog -- the "...of 5..." part -- using MTBlogEntryCount, so that's no problem. But isn't there something similarly blog-specific with regards to entry numbering?
*In actuality, the largest MT install I manage has 95 blogs on it and over 400,000 comments.
If this is important and you feel like being a guinea pig, (and upgrading isn't an option) I've got an obscure plugin that outputs this number. I can't remember the last time I used it, but MT's support for legacy plugins has a pretty good record. Either way, can't hurt; it'll just either work or not. Address is in my profile.
posted by Su at 4:04 AM on September 25, 2007
posted by Su at 4:04 AM on September 25, 2007
Thanks, Anil, but we're not planning on upgrading to 4.0 Enterprise until later this year or early next year. (That's a tribute to how well even good old version 3.2 has held up!) I was hoping there was some code I could pop in for the present time to tide us over... Also, we're at 400,000+ comments, not entries.
And thanks, Su, I'm willing to try out that plugin! E-mail coming your way shortly.
posted by Asparagirl at 12:59 PM on September 25, 2007
And thanks, Su, I'm willing to try out that plugin! E-mail coming your way shortly.
posted by Asparagirl at 12:59 PM on September 25, 2007
Sweet! If you have the time/inclination, do pass along word of how that worked. Su, as always, my hero! :)
posted by anildash at 11:16 PM on September 25, 2007
posted by anildash at 11:16 PM on September 25, 2007
Su's Movable Type plugin "EntryNumber" is tiny and perfect and is doing exactly what needs to be done (and on an old version 3.2 system at that). Hooray!
(Jay offered me one of his plugins too. Thanks!)
posted by Asparagirl at 5:21 PM on October 3, 2007
(Jay offered me one of his plugins too. Thanks!)
posted by Asparagirl at 5:21 PM on October 3, 2007
This thread is closed to new comments.
The short answer is, though, there's no native tag for the count you want to display.
posted by anildash at 8:30 PM on September 24, 2007