Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Sorry for my english.
I try to set up a cck field in a content profile node type with CCK Phone, but nothing happend. The settings of private field doesn't show on node add page. With another cck field works perfect. Im using it with friend flag module.
Comments
Comment #1
szantog CreditAttribution: szantog commentedOk, some other:
I set up a new field after the phone field, the phone field is good, but the last doesn't work. Only the last.
Comment #2
markus_petrux CreditAttribution: markus_petrux commentedTelling it doesn't work does not give too much information about the cause of the issue, which is what needs to be fixed, and it could be related to many, many things...
To be sure it is related to CCK Private Fields, this needs to be debugged on site, trying with latest dev versions of all affected modules, etc.
Comment #3
szantog CreditAttribution: szantog commentedOk, sorry. :)
Doesn't show.
Now, i solved it, i tell you, what was the problem, because this is a bug too.
I'm not the user 1, but i am administer on site using adminrole module.
If i make a cck field, i dont get automatic the new roles: edit privacy options for field field_phone and view privacy options for field field_phone
If i make a new cck field, i got the roles field_phone, but i dont get the roles to new fields. I need to add manually in premission page.
So, this a very minor bug, and can solved it simply.
I change the title, just close it, if this is difficult to repair. :)
I hope, this was understable! :)
Comment #4
markus_petrux CreditAttribution: markus_petrux commentedSorry, I do not use the Adminrole module. Do you mean you need to explicitly enable the permissions to an administrator role (assuming that's a feature of the Adminrole module) as soon as they are enabled from the field settings form?
If so, since the Adminrole is not Drupal core, I need to know how to trigger the Adminrole module to evaluate if there are new permissions. Maybe it just intervenes when modules are enabled, and then I think you should ask the Admin module maintainers to add provide a method that can be triggered from other modules that generate permissions dynamically.
Comment #5
markus_petrux CreditAttribution: markus_petrux commentedComment #6
szantog CreditAttribution: szantog commentedOk, i move this to adminrole module.
Comment #7
Dave ReidAll you have to do is in a form_alter, add:
Or you can directly call the adminrole_update_permissions() function.
Comment #8
markus_petrux CreditAttribution: markus_petrux commentedOk, moving back to CCK Private Fields queue.
Support for Adminrole has now been added, and it should be available with the next dev snapshot. Feedback from testing is appreciated so that I may create a new stable release for CCK Private Fields with the feature in place. Thanks!
Patch:
http://drupal.org/cvs?commit=407512
Comment #9
markus_petrux CreditAttribution: markus_petrux commentedComment #10
szantog CreditAttribution: szantog commentedI've tested it, and added more new cck field with different privacy settings, and all worked well!
Thanks all!