I've got a field that I'd like the node author to view, but not edit, while they are on node/nnn/edit. I was hoping that the "view <field>" permission would be what I need, but that only affects whether or not the role sees the field when viewing the page, not editing the page. And as such, once that permission is granted everyone with that permission can see that field for every user's content.

(A "view own <field>" permission would fix that latter problem.)

Ideally, "view <field>" would also show the field at node/nnn/edit, perhaps replacing the input object with just the value of the field.

Comments

arthurf’s picture

Status: Active » Postponed (maintainer needs more info)

Huh- your use case here is not one that I had considered. Generally the point of this module is to hide data, but you're looking it for not being editable. I think it would require an admin setting that switches the removal in cases like the create/edit screens to to display non-editable text.

arthurf’s picture

Status: Postponed (maintainer needs more info) » Needs review

There is an option for this now in the cvs version. It would be great if you could test it out and let me know if this is what you're looking for.

mrtoner’s picture

Sorry, but I'm unclear where/what I'm supposed to download. I did download and install 5.1-1.10, but I still only see administer cck field permissions, create <field>, edit <field>, edit own <field>, and view <field> as available permissions.

hsfdrupal’s picture

>There is an option for this now in the cvs version

Is it now solid enough to use? I too would like users to see all fields in a CCK, but when they edit, only be able to edit a few of the fields - but they need to see the other fields to have context about the node they are editing.

Can another release be cut instead of getting it from CVS?

hsfdrupal’s picture

>Is it now solid enough to use?

Hmm, I just tried it, and it disables my text input fields well enough, but I have 2 pulldowns in my CCK and the module now has no effect whatsoever on them. The old version used to at least hide the fields, but now I can't hide or disable, neither setting seems to have an effect. Can someone verify?

Vidarls’s picture

Version: 5.x-1.4 » 5.x-1.10
Status: Needs review » Postponed

This functionality is not present in 5.x-1.10.

I think this should be put on wait until the core module behaves as it should.

designanddraft’s picture

Version: 5.x-1.10 » 5.x-1.x-dev

drupal 6.x, v6 transparent admin
I am looking for transparent administration, open, visible and sometimes editable admin settings with security. based on permissions, locked individually (as a node?), password protected, view and/or edit choice for admin inserted at the top or bottom of all admin/settings pages. even better, password or radio button next to every settings choice as viewable and/or editable similar to form field protect. a prominent notification to the user, “you can view this page of administration settings, if they require edit, please email administration with your request link”. Possibly even attached comment or site note section, ability to insert instruction or voting widget.
I gather this is the approach taken by adding access control to the core and maybe it is similar to drupal core building. I have been looking at everything I can find and I’m not a programmer yet, so I need to pass what I’ve found on to someone else here. If someone can put these pieces together or have experience with something similar with any version 4,5,6,7. i'm listing this at all of these locations aswell. Rsvp, elisa

http://drupal.org/node/109157 access control
http://drupal.org/node/131101#comment-735943 Add disabled attribute to protected fields
http://drupal.org/node/245900 How to Protect Nodes From Editing on Demand
http://drupal.org/node/31143#comment-796152 Node Privacy by Role not working
http://drupal.org/project/nodeaccess nodeaccess
http://drupal.org/node/126129#comment-703933 password protect a page
http://drupal.org/node/222263#comment-902378 Port of Content access for D6
http://drupal.org/node/29991#comment-51352 Protected content
http://drupal.org/node/13266 Show block to certain users or roles only- Drupal 4.6
http://drupal.org/project/simple_access simple access
http://drupal.org/node/118404#comment-735895 View, but not edit, field at node/xxx/edit

mrtoner’s picture

Version: 5.x-1.x-dev » 5.x-1.10

Please post in the forums any requests for custom module development.

wOOge’s picture

Just wondering if this went anywhere?

I'm also looking for a way to view certain fields (like someone's renewal date for example) but not edit them, while in the edit form.

I would use this feature in a content profile node. That way only admins can change some fields but users can still see the data — even in the content profile node edit for.

Thanks!

halstead’s picture

You are still using Drupal 5.x? The functionality you want is available for Drupal 6 and 7.