Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2008-06-30 20:58:24
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
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
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.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
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
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,319
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
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.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#22 2008-06-30 23:43:19
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Deleting categories
Bloke wrote:
Not an insurmountable problem, I say go for it.
I agree, too, and would welcome that change.
Offline
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,319
Re: Deleting categories
Thanks :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline