Sort Categories And Folders
This plugin enables you to sort categories and folders as you like.
Usage:
1) Download zip file from http://www.h-fj.com/mtplugin/SortCatFld101.zip
2) Unzip downloaded file.
3) Upload unzipped folders to directory of Movable Type.
4) Log in to Movable Type.
5) Add 'sortmethod="SortCatFld::Sort"' attribute to MTSubCategories / MTTopLevelCategories / MTSubFolders / MTTopLevelFolders tag.
6) Enter 'Manage Categories' page and click 'Sort categories' link.
7) Sort categories with arrow button and click 'Save changes' button.
8) Enter 'Manage Folders' page and click 'Sort folders' link.
9) Sort folders with arrow button and click 'Save changes' button.
10) Rebuild blog.
softserve
December 5, 2007 4:06 PM | Reply
Note that this DOES work. The issue is the instructions are wrong.
sort_method="SortCatFld::Sort" is the correct usage. You absolutely need the undersecorel
cc
December 10, 2008 11:06 AM | Reply
Running MT 4.21, I've got the plugin installed, and have added the sort_method attribute. I can see the sort interface, but there is no "save changes" button as described. I've tried making changes to the sort order, then going to the plugin settings and using the "save changes" button there, but still my changes are not preserved. Does anyone have any tips? Thanks!
Jérôme Gamez
December 14, 2008 6:56 AM | Reply
Please note that there is a new version of this plugin available at the author's website (Version 1.02). You can download it here.
cc
December 15, 2008 10:27 AM | Reply
Thanks Jerome! Version 1.02 works exactly as it should!
Jérôme Gamez
January 20, 2009 6:27 PM | Reply
Here is a template module that enables you to sort entry categories as well: http://pastie.org/366310.
I'd liked to implement it into the plugin itself, but as my Perl skills are... let's say: limited... :)
tb2
July 20, 2010 5:43 AM | Reply
That does NOT work for me. I use Version 1.02 and I just would like to sort folders. I don't need to sort categories. But in Manage Folders is just a link "Sort Categories" and no link "Sort Folders".
What did I wrong? Has anybody some experiences with that?
Michael J. DeLuca
November 3, 2010 4:52 PM | Reply
I don't think this plugin works with MT 5 pro. I followed the directions, downloaded version 1.02, fixed the typo in the instructions. It works to sort the categories in the admin pages, but not on the public-facing site. My template tag looks like this:
And I get this error:
Error in <mtSubCategories> tag: Error sorting categories: Can't call method "order_number" on an undefined value
Which is really too bad. If anyone knows how to get this to work in MT5, please let me know.
Karina
December 9, 2010 3:11 AM | Reply
I tried version 1.11 in MT 5.02 and it worked.
(The second link under "SortCatFld" is the download.)