Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-13 21:32:35

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

prevent users deleting categories

hello

When I allow clients to access the Categories tab it often ends in tears – they’re prone to delete parent categories and lose all the sub-cats.

Is it possible to give a Txp user read & write access, but not allow them to delete anything – as is possible with articles?

many thanks
Stu

Offline

#2 2008-02-13 22:05:55

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

Re: prevent users deleting categories

In TXP 4.0.6, you cannot delete categories that are still in use by an article. Also, deleting a parent category should never result in the deletion of child categories (that would be a bug).

Last edited by ruud (2008-02-14 16:06:38)

Offline

#3 2008-02-14 02:18:38

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

Re: prevent users deleting categories

ruud wrote:

In TXP 4.0.6, you cannot delete categories that are still in use by an article.

That is fabulous!!
If I understand you correctly, that means, I could put a dummy article set to hidden into each category to lock them all down?

Martin

Offline

#4 2008-02-14 07:10:07

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

Re: prevent users deleting categories

Yes, that should work. Btw, this applies to pages and styles as well, those can’t be deleted either if they are still in use. For forms this safeguard isn’t implemented, because that’s non-trivial to implement.

Offline

#5 2008-02-14 07:55:04

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: prevent users deleting categories

excellent news
thanks very much

Offline

#6 2008-02-14 15:48:00

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

Re: prevent users deleting categories

ruud wrote:

Btw, this applies to pages and styles as well, those can’t be deleted either if they are still in use. For forms this safeguard isn’t implemented, because that’s non-trivial to implement.

That’s good to know. Were these safeguards just implemented in 4.0.6 or were any of them around in earlier versions?

What about image categories?
I make extensive use of them to build galleries and deleting any would be a real bummer.

Cheers Martin

Offline

#7 2008-02-14 16:09:00

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

Re: prevent users deleting categories

It seems I spoke too soon and confused categories with sections.
I did add safeguards (in TXP 4.0.6) against accidental deletion of style sheets, pages and sections, but not for categories. I’ll try to add this in 4.0.7

Offline

#8 2008-02-14 18:07:18

pieman
Member
From: Bristol, UK
Registered: 2005-09-22
Posts: 491
Website

Re: prevent users deleting categories

doh!
aah well… thanks anyway

Offline

Board footer

Powered by FluxBB