Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-06-30 19:55:32

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Deleting categories

Noooo, such a compromise would be much more complicated. It’s one or the other.

Offline

#14 2008-06-30 20:12:19

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Deleting categories

OK, in that case I vote that parent categories can’t be deleted if they have any children :-)

Like I said, I don’t know how hard it is to implement any of this, I was just dishing out ideas, so I’m perfectly happy with whatever you guys think is doable/reasonable.

Offline

#15 2008-06-30 20:22:05

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Deleting categories

Sorry, I just noticed I had posted some confusing rubbish in my first reply:

Just wondering, would that also prevent deletion of parent categories that have no children and aren’t assigned to any articles etc.?

What I meant to ask was would that also prevent deletion of parent categories that are only used for organising and aren’t assigned to any articles etc.?

Offline

#16 2008-06-30 20:58:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: Deleting categories

As I had my own troubleshooting thread for the same reason masa mentioned above, I’d also opt for undeletable parent categories.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#17 2008-06-30 21:54:15

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,280
Website GitHub

Re: Deleting categories

I’m easy either way, but I suppose it makes sense to prevent deletion of parents if they are “used” (have children) regardless if those children have things assigned to them or not.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#18 2008-06-30 22:57:38

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Deleting categories

I have a working changeset prepared… it does have one downside: you cannot delete a parent and its children all at once. You first have to delete the children before the parent can be deleted. Is this an acceptable side-effect?

Offline

#19 2008-06-30 23:04:22

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: Deleting categories

Is that the only downside?

Offline

#20 2008-06-30 23:04:44

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: Deleting categories

Is this an acceptable side-effect?

Yes, of course :)

Thanks, Ruud!

Last edited by uli (2008-06-30 23:05:43)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#21 2008-06-30 23:07:25

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,280
Website GitHub

Re: Deleting categories

You mean during a multi-edit delete? So if I checked all of:

  • fruit
    • strawberries
    • raspberries
    • blackberries

and did with_selected -> delete, only the three subcats would go? Providing they were unused of course.

Not an insurmountable problem, I say go for it.

Last edited by Bloke (2008-06-30 23:09:47)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#22 2008-06-30 23:43:19

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: Deleting categories

Bloke wrote:

Not an insurmountable problem, I say go for it.

I agree, too, and would welcome that change.

Offline

#23 2008-07-01 09:38:29

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Deleting categories

Done in SVN changeset 2929

Offline

#24 2008-07-01 10:00:03

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: Deleting categories

Thanks :)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB