2008 Feb 12

Blog Statistics with Movable Type 4

stats-widget.jpg The new version comes with additional tags. Although these tag s were not new t o Movable type using them together with the widget add in makes it easy play with movable type templates. Tracking the number of posts as displayed in the dashboard is very nice to keep us updated with our blog. It would even be better if its added to the blogs main page. We will be using 4 movable type tags namely:
<mt:BlogCategoryCount /> - Used to count the categories within a blog
<mt:BlogEntryCount /> - Used to count all the published entries in a blog
<mt:BlogCommentCount /> - the total number of comments
<$mt:AssetCount$> - the total number of assets uploaded

Lets start by making a Blog Statistics Widget:
1. Navigate to your blogs templates and on the quickfilter click on Widgets
2. Create a widget and name it Blog Statistics
3. Paste the following:
 <div class="widget-blog-statistics widget">
    <h3 class="widget-header">Statistics</h3>
    <div class="widget-content">
    Total Categories: <mt:BlogCategoryCount /><br />
    Total Entries: <mt:BlogEntryCount /><br />
    Total Comments: <mt:BlogCommentCount /><br />
    Total Uploaded Assets: <$mt:AssetCount$><br />
    </div>
</div>
4. Save your new widget
5. Navigate to your Widget sets
6. Drag and drop Blog Statistics from the Available widget to your Installed Widgets
7. Click on Save Changes

0 TrackBacks

Listed below are links to blogs that reference this entry: Blog Statistics with Movable Type 4.

TrackBack URL for this entry: http://www.tildemark.com/cgi-bin/mt4/mt-tb.cgi/95

Leave a comment

About this Entry

This page contains a single entry by tildemark published on February 12, 2008 1:03 PM.

Login Widget for Movable Type 4 was the previous entry in this blog.

Adding adsense to your movable type 4 blog is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Today

  • tildemark tweeted, "@jjdoblados SmartBro wont work with linux because the installer is an exe file. plus SMARTBRO sucks my dialup connection is even faster."
  • tildemark tweeted, "i think i accidentally drank 2 dosage of my medication. now, im feeling dizzy. is there a way i cound unswallow it?"

Monday

  • tildemark tweeted, "I'm feeling tired. i hope the clock will run a bit faster this time."
  • tildemark tweeted, "got sick for about 3 days. ended up finishing nwn2."

Thursday

  • tildemark tweeted, "im planning to move again, but i dont know where."

Sunday

  • tildemark tweeted, "I drank 3 sachets of instant coffee, ang now i cant sleep even if my eyes are sleepy? I can hear voices.wtf"

Friday

  • tildemark tweeted, "im so sleepy. Zzzzzzzz"

Sunday

  • tildemark tweeted, "some of my scipts are not working with godaddy. but works fine on the others. not mention their poorly coded admin page"

Thursday

  • tildemark tweeted, "so many pending tasks i need to finish. need more coffee !!!"
  • tildemark tweeted, "@gmtristan i dont think that is true."