Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Hubert_r on
Is there a way to controll which options are displayed when editing a page?
Let's say I have:
- input format
- product
- comment settings
- menu settings
- file attachments
- authoring information
- publishing options
And I would like to see only:
- authoring information
- publishing options
Also, by default the "menu settings" options always appear uncollapsed when I edit a page. Is there a way to control which settings are collapsed and which are not?
Thank you for your help,
Hubert.
Comments
If you're user #1 (the
If you're user #1 (the admin) then you'll see everything. I don't think there is anything you can do about that. But what your users see is based on their permissions and roles found in admin » access control.
I believe that the menu settings fieldset will appear uncollapsed if values have been entered in those fields previously. Again, not sure if that is something you can change without hacking.
Thanks for your reply. I
Thanks for your reply.
I have one user role that will see most of it, but I think it is confusing. They don't need, for example, to see a "product" option when they edit a page. (it's part of the e-commerce module, to turn any node into a product). However, They need the access to products enabled, because they need to be able to create a new product.
Anyway, the closest I have found for this is this:
http://www.nicklewis.org/node/842
where all the "admin" stuff is the publishing and authoring options. I will remove all the rest for that role.
As for the collapsable fieldset, ah, well, I wish this was themable somehow...
It seems like the e-commerce
It seems like the e-commerce module should allow you to select which content types are able to be turned into products. Double check that it's not possible at admin » settings » content types and maybe submit an issue about it.
You could probably create a custom module and fix the fieldset problem using hook_form_alter().
If you want to get rid of
If you want to get rid of the fieldsets altoghter, make sure that $form['foo-f#cking-bar']["#type'] = NULL;
This makes the items go back to the default behavior -- attempting to change the type screws things up in cases where type = form or fieldset. Just a warning. :-)
--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
http://www.nicklewis.org
--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com