Since the plugin contest deadline was extended, I thought I would spend some time making more improvements to SubCategories and this is what I came up with.
Download one of the following:
New in this version:
- Category Label Delimeter: When you create a category, you can string together a hierarchy of categorys by putting all the category names in one category and seperating them with the configured delimeter (defaults to '::').
- ( Experimental ) Parent Category Archive Rebuilding: If turned on, when an entry is saved with a primary category set, the category archive for each ancestor of that primary category will be rebuilt.
More information and examples can be found in the SubCategories documentation
Update: Just to make sure I am explicitly clear, these are both MT 3 only features.
Another Update: Okay, a bit of a hiccup on my part. I managed to leave a bug in the Category Label Delimeter code when I moved from the testing version to using the config values (unfortunately, callbacks in MT do not generate immediately obvious errors; you have to go look in the activity log). It has been fixed and the version on the site has been updated. So, if you downloaded it before about 1100 (EDT) on Monday, get it again.
Well rebuilding parent archives works yay :)
The Category delimiter thing doesn't. I created a category called Testing::Test but after I hit ave MT only created one category called that and mt-sc showed only one category with that name not parent Testing with a child Test !
Sorry about that. A bit of a hiccup when moving from my testing version to using the config values instead. The version on this site has been updated with the fix.
Is this version supposed to with with 2.661? You asked about 1.0 working a while back, but nobody responded, and there hasn't been any official statement that I've seen, other than that some features are v3 only.
When I try to run the mt-sc.cgi script, I get:
Can't call method "get_config_value" on an undefined value at /var/www/users/gawker/gawker/mt/mt-sc.cgi line 90.
MTApp::SubCats=HASH(0x805f8a8) Use of uninitialized value in concatenation (.) or string at /var/www/users/gawker/gawker/mt/mt-sc.cgi line 27.
MTApp::SubCats=HASH(0x805f8a8) Use of uninitialized value in concatenation (.) or string at /var/www/users/gawker/gawker/mt/mt-sc.cgi line 27.
David,
Thanks for the interesting plugin!
While playing around with it, I came across the following little issue: In the Wiki documentation, you provide a way how to show a complete list of the (sub)category structure, which works just fine.
But is there a way to -- on index templates -- only show the subcategories of one specific top-level category.
Example: My category structure might be "A" and "B" as top-level categories, and subcategories "1" , "2" and "3" for category "A", and subcategories "i", "ii" and "iii" for category "B". On my index template, I would now want to display only 1, 2, 3 as the subcategories for category A. Why? Because B is only used for some internal organization mechanism none of the readers should see.
Thanks in either case for the great effort!
Best regards,
Stefan
Stefan:
Wrap your MTSubCategories container using the the Category plugin to specify the single category you want to work with.
Hello, I'm experimenting your great plugin in a faceted classification environment, so I basically have each item defined by four couples of category/subcategory.
I managed to display the scheme with four breadcrumbs (one per line) but what I'm trying to achieve is a hierarchical listing display; as far as I could understand, the glue attribute just give me the possibility to add strings (commas or delimiter of sorts) but no HTML tag, so I'm unable to create a list like:
category A:
· subcategory
category B:
· subcategory
category C:
· subcategory
category D:
· subcategory
thus displaying only the subcat I chose.
any idea? Thanks for your great (and very usable) piece of software.
David, thanks! That worked.
I am getting the following error message when I click on the subcategories link on MT Main menu page: [Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webadmin@pooran.us and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.]
I'm using MT 3.0 and I have rechecked that mt-sc.cgi has the correct permission.
Please suggest a fix
Thanks
Neil
--------------------------------------------------------------------------------
Apache/1.3.27 Server at pooran.us Port 80
If I install this plugin and later decide to remove it from MT 3.0D will there be any negative side effects? What will become of the subcats, do they become top level cats like if they were created otherwise?
I am interested in testing this, but just like to know my exit for CYA purposes ;)
I'm getting the same error message...
The previous version (sub_cats.zip) worked fine for me, but version 1.2 is giving me the exact same error. I'm on MT 2.64.
I'm trying to use MTSubCategories in my Individual Entry Archives to display a list of the Parent Category with all SubCategories, and have a list of entries only under the current SubCategory. Any suggestions?
Here's the code I'm using. The entry listing is separate from the main list, otherwise it gets repeated under each SubCategory.
I am started using SubCategories, but I can't figure out how to indent the children. How is that done. Currently, I am using the base CSS and a modifed base template of the index. If you want to take a look the site I am using them on is http://projects.koldark.net. If any one can point me in a direction that would be appreciated. When it comes to CSS, I am still pretty dumb.
David, thanx a lot for the excellent plugin u have. I have a question for u.
I have many categories like say Asia, Africa etc., with Countries of these continents of as their sub cats. eg:
Africa sub cats are ghana, nigeria, egypt etc. etc.
What i want is 5 recent entries of Africa ( which can be from any of the subcats) How can i do that?
Hi,
The last week I installed MT3.1 and I have more dubtes with the categories usage. I have a parent category (leyendo - reading) and a subcategorie name with the book's name. For exemple: the partent categorie is "leyendo" (reading) and the first subcategory is "La sombra del viento" (the book's name of my first book) and the second subcategory is "El codigo da Vinci" (the book's name of my second book). For any subcategory I can send any posts, for comment any things about the book. The first post has the image of the book and a little description, and the seconds post have descriptions that I like. I want to show, in the main index, a link to the first post to the last subcategorie that I add (to show the image). But if I send the second post in a subcategory i need to show the first post (the image).
I use this code:
[MTEntriesWithSubCategories category="leyendo" lastn="1"]
[URL=[$MTEntryPermalink$][div align="center"][$MTEntryBody$]
[/URL][/div]
[/MTEntriesWithSubCategories]
(I used the simbols [= because if not the post not show corretly)
But this code only show the last post in the all subcategories inside the parent category (leyendo).
I need som help about this.
Thanks and sorry for my English.
Hello David, thanks for such a wonderful plugin! It looks like it will do exactly what I want and make the navigation on my site more streamlined!
I am having a slight problem getting it to properly locate the individual entries. The category navigation and category archive pages go exactly where they should, but it doesn't seem to recognize the template tag (in weblog config) for individual entries and does not place the entries in the appropriate spot.
I spelled out the full problem with code examples here in the forum, but so far have had no luck there and was hoping you could take a look at it. (I'd be happy to send you something off your amazon list!)
Thanks!