Can't hide input or output fields using cck field permissions

SocialNicheGuru - December 24, 2008 - 20:33
Project:CCK Field Permissions
Version:5.x-1.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I am a little confused.

does this module restrict

1. who can view the elements on the form
2. restrict who can see a particular field on the node view
3. both

I am using content template. There are fields field_A, field_B that are on the input form.

field_A, field_B are for special admin, Editor, to fill in.

They do not show up on the node teaser or body page and I only want them to show up for Editor admin to fill in.

I have not included them on content template since CT only renders the node.

But the values are still viewable on the input page even after I selected the node and fields on the cck_fields_perm to restrict and given access only to Editor.

Am I missing something?

Chris

ps. formfilter allowed me to filter out fields but not with granuality that cck field perms promises. I just hope I can get it to work this time.

#1

SocialNicheGuru - December 24, 2008 - 20:34

UPDATE 1:
I just added field_B to my content template and used $node->[fieldgroup][field]['#access']

if $node->[fieldgroup][field]['#access']
print $node->[fieldgroup][field]['#value']

just to test if I put in the field woudl it not show up on the form input page (long shot I know) and it did show up

The suggestion of using fieldgroups in contenttemplate came from:

http://drupal.org/node/240189

 
 

Drupal is a registered trademark of Dries Buytaert.