Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-12-19 09:37:55
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Add another permission: Staff Writer with fixed category
- One normal as now, and
- one for writers that are only allowed to publish articles in one (fixed) category (named “Termine”).
So I need an additional special version of the permission “staff writer”.
How could that be added?
I have read How can Staff Writer’s Edit their own articles after they post them?
So I imagine, an additional permission could be inserted in php.
But is it also possible to “fix” the article field to a default value?
Can anybody help me ?
Thank you ,
Michael
Offline
Re: Add another permission: Staff Writer with fixed category
Start here: <a href=“http://textpattern.net/wiki/index.php?title=Modifying_User_Account_Roles_and_Privileges”>Modifying User Accounts and Privileges</a>.
Offline
#3 2005-12-19 17:57:55
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: Add another permission: Staff Writer with fixed category
Thank you.
That should be the first step: Create an additional account #7 (or replace #6).
But in the list there is no value for permissions regarding the fields within one tab – for example the category field (or the section field) within the article write/edit tab (creating or editing an article).
Maybe it should have something like the name “article.edit.category”
But only permission to use the category-list or not to use it is not enough.
For my need it should be possible to set it to a fixed value for the special writer account (within a range of categories that can be used by accounts with a higher permission).
Where could that be done?
Offline
Re: Add another permission: Staff Writer with fixed category
You are basically asking someone to to do custom programming for you. It may be possible to write it in the form of a plugin (though it would be more complex and require more skill), or it may only be possible by modifying the codebase, which means headaches for you every time you need to update.
Offline
#5 2005-12-19 19:09:02
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: Add another permission: Staff Writer with fixed category
> Sencer wrote:
> You are basically asking someone to to do custom programming for you …
I would like very much to try it for myself, but I need to know where to start and where to plug in or modify.
And also what skills I have to learn.
And of course I think that would be a good feature – because there are lots of people who never bother with what they are told what to do and use/change/mix whatever option they get their hands/mouse on.
In this case there are users who should be able to fill only one fixed (!) category of the site and no other.
Could this be achieved another way?
Offline
Re: Add another permission: Staff Writer with fixed category
If you want to contribute towards getting such a feature into the core, I’d suggest carefully reading this topic: Assignment: section permission design and seeing whether you can contribute something there (please do not simply duplicate your current request there, as we need something that “works well” in a broader context).
Offline