tips and tricks for movable type
add shortcut to reset activity log
May 07, 2005
In a previous mini-tip, I noted the URL to reset your Activity Log. With the introduction of magic tokens in Movable Type 3.16, that method isn't going to work now.
Being that I'm lazy about resetting my own Activity Log, and that I'm often too impatient to wait for the log page to load all the way so I can get to the normal reset option at the very bottom, I just hacked a shortcut into the Main Menu of my Movable Type installation.
The file to modify is tmpl/cms/list_blog.tmpl. Look for the section of code that starts with this (at about line 45):
and then right after this line:
add the following:
=reset_log&magic_token=<TMPL_VAR NAME=MAGIC_TOKEN>">»
<MT_TRANS phrase="Reset Activity Log"></a></div>
<br style="clear: left;" />
(Line breaks added for display purposes are indicated by »; these breaks should be removed from the code!)
Save the file and upload it back to the server in ASCII mode.
Log into Movable Type and you should now see the link in the Shortcuts:

recent bookmarks
latest mini tips
search results in a new window
include extended entry in notifications
finding the path with php
entry title as tooltip in calendar
mailto link using entry title as subject
previously...
dynamic archives by author
January 23, 2005The ability to provide archive listings by author has been a much requested option for Movable Type. While you can create a separate index template (using the
authorattribute onMTEntries) for each author, if you have a lot of them, this becomes a pain to manage (not to mention the negative impact on your rebuilds).The new dynamic publishing feature, which harnesses the power of Smarty, takes us a few steps closer: you only need a single index template, and then you can just pass the appropriate author name as a variable to the page to limit the listing to that author's entries. (more...)
paginated dynamic index page with smarty
November 06, 2004Brad gave me this Smarty code for paginating an index page (i.e., where you can have previous/next links with a certain number of entries per page). (more...)
per-category individual entry archive templates
October 16, 2004Stepan Riha showed us how to have Per-Category Templates for Category Archives. You can do the same thing for Individual Entry Archives, you just need a different plugin. (more...)