Page 1 of 1
Problem: Deleting categories with autorerange
Posted: Wed Aug 08, 2007 2:21 am
by blog.brockha.us
Oh man.. I deleted a category and was asked, what to do with the content of this category. I said: Move it to 'no category' (meaning: root).
After doing this, all subcategories of this category went away, too, and all articles were in 'no category'. I thougt that ALL content would be moved to the 'no category', meaning: Also the subcategories..

I think this habit should change in the future or at least a warning should be displayed, that all subcategories will also be deleted, if a category is deleted.
And: While creating all my subcategories again and assingning articles to it I was in desperate need of a filter showing all entries not having a category. This filter is not available yet..
Re: Problem: Deleting categories with autorerange
Posted: Wed Aug 08, 2007 11:43 am
by garvinhicking
Hi!
But it's expected that all subcategories are deleted, if you delete a category, right?

It's like warning people that their coffee might be hot.
So if you move all content in "no category", all subcategories entries will be moved omtp "no category" as well, IMHO that's expected and logical behaviour?
And: While creating all my subcategories again and assingning articles to it I was in desperate need of a filter showing all entries not having a category. This filter is not available yet..
Phew. That sounds like a tricky SQL query.
Regards,
Garvin
Re: Problem: Deleting categories with autorerange
Posted: Wed Aug 08, 2007 2:10 pm
by blog.brockha.us
Well no.. (in my case).
I had this structure
Code: Select all
root
+ blog
+ Games
+ XBox
+ Wii
+ Playstation
+ Technics
+ Regular Stuff
+ tests
I wanted to get rid of the blog category but wanted to stay with all the subcategories. I only ordered to delete the category blog, not all subcategories. After s9y asked me, where to put the content in and I ordered "no category", I expected this situation:
Code: Select all
root
+ Games
+ XBox
+ Wii
+ Playstation
+ Technics
+ Regular Stuff
+ tests
If s9y is deleting subcategories I would like to be asked before.
garvinhicking wrote:Phew. That sounds like a tricky SQL query.

Does it?
Re: Problem: Deleting categories with autorerange
Posted: Wed Aug 08, 2007 3:17 pm
by garvinhicking
Hi!
Your expected situation would only happen when s9y could MOVE categories, and not delete them. So IMHO you are missing a MOVE feature, and not complaining about a buggy delete function, because it works as it would expected to be.
In your case, you should have EDITED a category and simply switched the parent-category to "MAIN" instead of "blog":

)
garvinhicking wrote:Phew. That sounds like a tricky SQL query.

Does it?
[/quote]
Yes, because the left outer joins are AFAIR hard to toggle so that they give results for unmatched categories.
Regards,
Garvin
Posted: Wed Aug 08, 2007 3:37 pm
by blog.brockha.us
Well.. That's not worth the discussion anymore, I guess, as we simply have two different opinions here. The delete functionality does already move content (else it would delete all articles in the category, too).
I think the problem is the definition of what's the "content" of a category to be relocated. I hoped, content is both: articles and categories, Serendipity only defines articles as content and removes subcategories.
Posted: Wed Aug 08, 2007 4:53 pm
by garvinhicking
Hi!
I don't want to be annoying, just tried to explain the reasoning behind it
You are right, s9y thinks of content in that regard as 'articles' and not as subcategories.
Regards,
Garvin
Posted: Wed Aug 08, 2007 5:00 pm
by blog.brockha.us
You didn't annoy me at all!

I just think we have two different opinions here, that's all. No big deal.
