tips and tricks for movable type
more than five recent items on editing menu
November 09, 2003
By default, the Editing Menu for your blog shows the most recent entries, comments, and trackback pings (5 of each). Here's how to increase that number.
The code is in lib/MT/App/CMS.pm, and all line numbers are based on v2.661.
Entries, lines 233-236:
{ 'sort' => 'created_on',
direction => 'descend',
limit => 5 });
Comments, lines 254-257:
{ 'sort' => 'created_on',
direction => 'descend',
limit => 5 });
Pings, lines 272-275:
{ 'sort' => 'created_on',
direction => 'descend',
limit => 5 });
Change 5 to the number you want to display.
TrackBack: 8
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/160)
» More than five recent items on editing menu
Excerpt: My wife's been wanting that feature for a while now....
Weblog: freemoby.com
Tracked: 11.11.03 07:59 PM
» show more than last 5
Excerpt: I've never hacked my MT files before. I've add some plug-ins, but I've never made any changes to the actual MT files, until today. this makes me happy the girlie has lots of great little...
Weblog: highly moody
Tracked: 11.13.03 09:45 AM
» Movable Type Edit
Excerpt: The girlie matters has a tip to change the number of items displayed on your editing menu for Movable Type. I increased the number of comments displayed to make it easier to find (and then delete) spam....
Weblog: AlphaPatriot
Tracked: 11.14.03 11:17 AM
» MT Hack
Excerpt: Ecstasy! Ever since the spammers attacked, I have been wanting to change the default number of comments shown when I...
Weblog: one girl's life
Tracked: 11.24.03 02:08 AM
» >5 entries in MT Menu
Excerpt: Thanks to the girlie matters tips and tricks I now have more than 5 comments, pings and entries displayed in each section of MT's menu by making three small edits to lib/MT/App/CMS.pm (which now means yet another file I need...
Weblog: Absoblogginlutely
Tracked: 01.20.04 02:50 PM
» My first MT hack
Excerpt: Woooo! Scott and I just hacked something in my MT. I still can't believe it worked. I'd wanted to be able to show more than the last 5 comments in my Editing Menu, and found the instructions at Girlie Matters....
Weblog: Sugarfused
Tracked: 01.31.04 12:34 PM
» Bloggie Scripty Reverb
Excerpt: BB's Script, Plugin and Hack Archive as of 3/1/04: Collapse...
Weblog: Bloggie Broad
Tracked: 03.01.04 05:42 PM
» Cool quick hack
Excerpt: The comment spammers have started hitting my Wife's blog as well as mine recently... I've gotten her set up with MT-Blacklist and such too, which has helped some, but there are still some comments lurking in the background that she'd like to get rid of...
Weblog: Quirk Blog
Tracked: 07.24.04 02:58 PM
Comments
I've been looking for something like this. Thanks! Any idea how to work it so you can display say, all of the comments, if you wanted to?
Awesome. I spent all morning trying to figure out how to create a new template to do this but this one little edit makes all that unnecessary. Thanks!
That's pretty nifty. Thanks!
Thanks. I've been wanting to do this for some time.
Very helpful and interesting blog you have here. I'll be checking it often.
Thank you! I love it and I was actually able to do it! Heh.
This might not matter to some, but when you make that change the header for each section still displays "Five Most Recent *foo" or whatever.
To change that to N Most Recent *foo edit the mt/tmpl/cms/menu.tmpl file, lines 150, 179, & 208 to whatever they should be.
Whelp, that's it. Great site, I've learned a ton from it.
I did something wrong. I changed the .pm to a .html so I could look at it in Dreamweaver with the line numbers. Then, after making the change, I renamed it back to the .pm extension.
Then, I uploaded it to my server, overwriting the other file.
Now when I try to do anything in moveable type I get this:
Got an error: MT/App/CMS.pm did not return a true value at mt.cgi line 21.
HELP
You need to make sure to upload the file in ASCII mode.
Never Mind... I downloaded MT again and took that one file out of the directory of the download.
I'll make a backup first. (Shame on me.. i should know this...)
Oh.. just saw your comment. Thanks....
Thanks! It works on my site.
Ah, wonderful. That saves a lot of time searching. Thanks!
This is great, and I only broke it once lol :) I'd been looking for a way to do this, so I'm very excited to have found it here.
Thank you!!
cool, i've been looking for a way to do this
HELP! Girlie!
I tried to do this and now I can't get into my MT editing mode at all. It keeps telling me, "Got an error: Unrecognized character \xAE at lib/MT/App/CMS.pm line 66. Compilation failed in require at mt.cgi line 21."
I need this to go away! I don't care that much about the editing menu. I can live with the default "5." Please tell me how I can just get CMS.pm back where it belongs and in the right condition. Yikes! Panic!
Delete panic alert. I downloaded and uploaded CMS.pm, as Leslie did. Editing mode is back.
Now I have to figure out how to edit the file and save it in ASCII. Will MS Word do it?
Did it with WordPerfect. Happy now!
Thanks - brilliant
Just for the record, this method is still valid as of MT 3.1 The line numbers have increased quite a bit -- the show_menu sub now starts at 446.
Do a find for "limit => 5" and that should produce the three lines you need to change.