Hi to all!

Finally I found a way (this module!) to prevent my site users making "DAMAGE" with the "Split Summary Button"... (the most un-userfriendly Drupal option!). Thanks a lot!

I would like to ask for a feature for "per role" control of module's settings, leaving the ADMIN the possibility to see the all the "hidden" fields or butttons (naturally, if he/she want!).

Thanks, bye!
;)

Comments

lelizondo’s picture

Status: Active » Postponed

I'm not 100% convinced about this, I think the module would be so complicated, I'll think about it but I don't promise anything. I accept patches though.

Dret’s picture

You could make a more simple solution, considering only two categories of users: ADMIN and NON-ADMIN...

Bye!

flaviovs’s picture

From all features of this module, I think that only the "Split Summary Button" setting is an actual candidate to have a "per role" option. That's because admins usually want to prevent their users from breaking their sites, though they also usually want someone with some privileges to be able to edit and set the node teaser. Currently, it's not possible to set/edit the teaser on a content type where the split button is disables, which is bad.

What about adding an option to show the split button to users having some permissions? I mean, something like:

Node form settings

 Split Summary Button:
 ( ) Enabled for all users
 ( ) Enabled for user with administer nodes permissions
 ( ) Disabled

Then you can just add an additional check for user_access('administer_nodes') to tell if the split button should be shown or not.

lelizondo’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Assigned: Unassigned » lelizondo
Status: Postponed » Active

That could work.

capellic’s picture

Great module idea -- I'm doing exactly what you were doing -- turning things off through hook_form_alter and CSS. I was about to remove my hacks and go with this module, but realized that my home-grown overrides have the advantage of having things "on" for the "admin" role but off for the "editor" role. (To be clear, these are roles that I have created.)

So I'll second the request for a "per role" option.

I really think that this module should be a part of Drupal core as it would greatly help usability.

lelizondo’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Priority: Normal » Major

I'll start working on this based on the idea posted on #3