Feature request: Automagic creation of subcategories

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Feature request: Automagic creation of subcategories

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Feature request: Automagic creation of subcategories

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Feature request: Automagic creation of subcategories

Post 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
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Feature request: Automagic creation of subcategories

Post 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.
=Don=
Post Reply