For certain CCK modules (Email (http://drupal.org/project/email) and CCK Fullname (http://drupal.org/project/cck_fullname) for example), the padlock icon doesn't appear next to the label. I'm guessing they're processing differently than other CCK modules, but I don't know enough to fix it yet. Any suggestions would be helpful.

Also, should/does this module filter out the values in views? I have a panel view that incorporates some fields that I marked as viewable by Nobody and they're showing up to other people in the view. When looking at the form the fields are not displayed.

Comments

yoyoman’s picture

Hmm, just noticed that it doesn't work with cck_address either. cck_address let's you create a content type field, and that field is displayed as the street, city, state, etc when displayed. I don't think there's a way to break apart the custom field into its inherent parts (street, city, state, etc).

Maybe I'll just have to add those fields to my uprofile content type and make some modifications to use the cck_address module, which for me is mainly the AJAX component.

obsidiandesign’s picture

Does the padlock not appear at all? In testing, the padlock displays as follows:

Email: No padlock (looking into it)
Address: At the top of the field set (intended behavior)
Full Name: At the top of the field set (intended behavior)

The problem with trying to set the privacy at the sub-field level is trying to track it all in the DB. The decision was made in development to focus on the fieldset in those cases, rather than the fields that make up the fieldset.

yoyoman’s picture

In my particular case, I'm going on a field by field basis for the address data. I ended up just creating separate CCK fields and adding some AJAX to replace what cck_address was doing for me.

Leeteq’s picture

Subscribing.

obsidiandesign’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Assigned: Unassigned » obsidiandesign
Status: Active » Needs review
StatusFileSize
new2.1 KB

I have a patch against the 6.x version that makes the field appear next to email fields. Any help testing against other field types would be greatly appreciated. Once there's confirmation that this fixes the problem, I'll backport it to 5.x.

Bryan

bensemmel’s picture

I applied the patch and it's working for the Email cck-field with my installation as well without any problems....

Thank you

obsidiandesign’s picture

Status: Needs review » Fixed

Patch applied to both the 6.x and 5.x branches. New releases will be available once the packaging script runs.

ricobotto’s picture

I installed CCK FieldPrivacy, but for some reason there are 2 padlocks near the field that I want private..one of the padlocks brings up 3 main privacy categories, whilst the other padlock does nothing except it takes me to the top of the page. In both cases, the field is still visible...

obsidiandesign’s picture

Status: Fixed » Postponed (maintainer needs more info)

@ricobotto - what type of field is it, and what version of CCK are you using? Drupal 5 or Drupal 6? This will help narrow down the source of the issue.

ricobotto’s picture

I am using drupal 6. I am trying to use it with content profile fields. thanks

obsidiandesign’s picture

@ricobotto - I can't replicate with the latest version on D6 + Content Profile. I tried using an Integer, an Email, and a Text field. All displayed a single padlock icon correctly.

ricobotto’s picture

I reinstalled the module, and seems to be working..thanks

obsidiandesign’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking fixed...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.