Page 1 of 1

Feature request: Automagic creation of subcategories

Posted: Fri Feb 27, 2009 2:53 pm
by yellowled
Just an idea, maybe this doesn't make sense for every user, the overhead is too big, or it's simply not that easy to implement. Anyway: I just spent about an hour creating categories for a s9y-powered site, most of them subcategories of the same, hm, "scheme".

So I was wondering whether it would be possible to implement something like "add a subcategory called foobar to all categories selected" or something like that?

YL

Re: Feature request: Automagic creation of subcategories

Posted: Fri Feb 27, 2009 3:37 pm
by garvinhicking
Hi!

I would code a very simply PHP for that, simply fetch the list of all main categories through serendipity_fetchCategories() and then use serendipity_addCategory() on each of the iterated lists.

It's virtually impossible to create a nice GUI for this, and this kind of scripting is just perfect and fully customizable for it...

Regards,
Garvin

Re: Feature request: Automagic creation of subcategories

Posted: Fri Feb 27, 2009 3:42 pm
by yellowled
garvinhicking wrote:I would code a very simply PHP for that, simply fetch the list of all main categories through serendipity_fetchCategories() and then use serendipity_addCategory() on each of the iterated lists.
You would do that. Us mere mortals still have to click a lot :wink:
garvinhicking wrote:It's virtually impossible to create a nice GUI for this, and this kind of scripting is just perfect and fully customizable for it...
If you say so ... I can imagine that the impact on the admin backend would be rather huge compared to the functionality added, but still: All you'd need would be a list of categories with a checkbox in front of it ...

Never mind.

YL

Re: Feature request: Automagic creation of subcategories

Posted: Fri Feb 27, 2009 5:09 pm
by Don Chambers
If it makes you feel any better YL - I have run into the same issue. For instance, I might have had 20-30 "parent" categories, each of which needed 6-8 of the same "child" subcategories.... so I had to create the same 6-8 child categories 20-30 different times.

That being said, I have encountered some human (not technical) issues when child categories have identical names across different parent categories - every now and then, there is confusion regarding the actual parent... For instance, if each of my "parent" categories all had child categories equal to the year (ie, 2009, 2008, 2007, ...etc), there have been instances of confusion over WHICH parent it is when only looking at the child category... as a result, I sometimes append some or all of the parent name to the child, especially when there are a lot of identically named child subcategories.