Active
Project:
Content Construction Kit (CCK)
Version:
6.x-2.8
Component:
nodereference.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2010 at 18:43 UTC
Updated:
15 Dec 2010 at 21:33 UTC
So that it stays in my system and nobody can change it, even the original author.
My example is..
I am using a node reference field (with a view that allows the author to select information that only they created). Author saves node.
Next, I want a user to edit this node but leave that field alone. But because it's a node reference field using a specified view, the information inputted earlier is erased.
Thus, I need it to save and not be allowed to edit. Access Control and Permissions has no ability to keep this field saved.
Any suggestions?
Comments
Comment #1
calefilm commentedMaybe I can ask this question in different terms.
Upon saving a node, "how can I make a cck field permanent so that it can not be edited"... even if a user has edit permissions?
Comment #2
zeezhao commented1. write a hook to hide field during edit by using any of these options:
- hook_field_access()
or
- hook_form_alter()
Or
2. try this module: http://drupal.org/project/field_permissions and use its "edit field during node creation" feature
Comment #3
calefilm commentedThanks zeezhao for your reply. After thinking about it, I'm not sure what I'm asking is even possible. So I have a work-around just in case.
I'm actually aware of this module and am familiar with edit permissions. In my case, I'm dealing with a very unique issue. I have node reference URL enabled for content type: "Payment Review" referencing the title of content type: "Company Page"
example:
1) Sally creates "Company Page ABC"
2) Sally will go to node "Company Page ABC" and click "Submit Payment Review" link at the bottom of this node (this is the node reference URL link that I set up as the Node Reference URL field inside "Payment Review" content type)
3) Now Sally can edit the Payment Review node (the first field being pre-set to the TITLE Of Company Page ABC, the node referenced field)
My entire problem comes down to.... I would like Jonny to edit this same Payment Review after Sally saves it. Upon saving her Payment Review, the Node Reference field is saved as "Company Page ABC". But if Jonny edits this page the Node Reference field that Sally saved as "Company Page ABC" is now blank! Why? Because I have a view selected (on the bottom of my node reference field) that only allows each user to reference nodes that they have created. Thus, when Jonny goes to edit Sally's Payment Review, he cannot reference the same Company Page that Sally can reference.
Thus, I need a field to be saved and to be saved permanently so that when Jonny edits Sally's Payment Review of Company Page ABC, this node reference field cannot be changed.
This is all very complicated I know. But I'm just writing this in hopes some day this can be answered. Although, I think it may be an impossible task I'm asking.