Padlock not displayed with custom CCK Types

ChadH - February 12, 2008 - 19:44
Project:CCK Field Privacy
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:obsidiandesign
Status:closed
Description

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.

#1

yoyoman - February 13, 2008 - 02:41

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.

#2

obsidiandesign - February 14, 2008 - 01:21

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.

#3

yoyoman - February 14, 2008 - 18:40

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.

#4

DanielTheViking - July 4, 2008 - 10:09

Subscribing.

#5

obsidiandesign - November 15, 2008 - 23:16
Version:5.x-1.x-dev» 6.x-1.x-dev
Assigned to:Anonymous» obsidiandesign
Status:active» needs review

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

AttachmentSize
cck_field_privacy.module_customfield.patch 2.1 KB

#6

bensemmel - November 16, 2008 - 12:26

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

Thank you

#7

obsidiandesign - November 16, 2008 - 19:29
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.

#8

ricobotto - November 25, 2008 - 15:24

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...

#9

obsidiandesign - November 26, 2008 - 00:07
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.

#10

ricobotto - November 29, 2008 - 22:40

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

#11

obsidiandesign - November 30, 2008 - 23:05

@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.

#12

ricobotto - December 2, 2008 - 16:44

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

#13

obsidiandesign - December 6, 2008 - 15:51
Status:postponed (maintainer needs more info)» fixed

Marking fixed...

#14

System Message - December 20, 2008 - 16:37
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.