Any plan to port over to drupal 7?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Shadlington’s picture

+1

markus_petrux’s picture

Status: Active » Postponed

Sure, though I cannot tell exactly when I'll have the time to start playing with D7. Patches are welcome.

bryancasler’s picture

subscribe

jacov’s picture

subscribing

danielm’s picture

subscribe

lesleyfernandes’s picture

subscribe

sw3b’s picture

subscribe

bryancasler’s picture

While waiting for this module to be updated I suggest looking at http://drupal.org/project/field_permissions as an interim solution.

andrebonfanti’s picture

subscribe

likewhoa’s picture

subscribing

MaxWesten’s picture

subscribe

likewhoa’s picture

Title: Port to Drupal 7 » Port CCK Private Fields to Drupal 7
Category: feature » task
Issue tags: +port to d7. d7 porting

updating for better tracking.

halloffame’s picture

@markus_petrux any progress?

vidra’s picture

subscribe

maxmx’s picture

subscribe

fl3a’s picture

subscribe

funature’s picture

subscribe

likewhoa’s picture

euroba learn to follow instead of subscribing, see top of thread.

cjd400’s picture

subscribing

POVYLAZZZ’s picture

This modules functionality may be mimicked using Field permissions and Conditional Fields modules.

  1. Add as many fields with different access conditions as you want
  2. Add a field which will service as a switch. This switch has to have all the permission types listed. (Selectlist/Boolean)
  3. Using conditional fields you can make a relationship between the switch and the fields with different permissions. In it you should limit visible fields to turned on security levels.

Pros:

  • Same input criteria may have different value depending on access level.
  • More flexibility in access level.

Cons:

  • Security. Conditional Fields regulate only visibility of fields not the input. I am worried that if value is entered and field is disabled the imputed value will still be written to the database.
  • If data have to be passed multiple times with different access level only way to do this is using Field Collection module and this module does not always play nice since it is on active development now.
DrupalDesigner-1’s picture

subsribe

Field Hidden could be an alternative with a good Rules setup. But still not as streamlined. The main benefit for using this module is it's integration with User Relationships module, since as you said field permissions alone can be achieved with other modules in D7. At the moment there is no D7 equivalent that integrates with User Relationships, hence the need for a port.

DrupalDesigner-1’s picture

I am doing my best to port this module to D7 myself, but as I'm not a programmer I could really use some help. I have the module at a stage now where it can be enabled without any errors but I am running into some problems when trying to create content. If you would like to help out please help answer my questions on Drupal Answers. Thank you and looking forward to having this out for everyone who needs it.

DrupalDesigner-1’s picture

FileSize
39.77 KB

Update:

The module can now be installed/enabled without any problems, but when trying to create content causes a PDO exception on line 49 of the common.inc file (cck_private_fields\includes). I have tried with a few others from the Drupal community to work this error out but haven't been successful up to this point. I'm uploading the full module at it's current state here for anyone else to have a look at and provide help with. For someone who knows what they're doing this shouldn't be too hard, but since I'm not a programmer I can't really do any more on this until the error is resolved.

kenorb’s picture

robcarr’s picture

FileSize
3.46 KB

For anyone that's interested, I've put together a lightweight D7 module based on the User Field Privacy module, but tweaked for nodes. It doesn't have the 'buddy list' integration as offered in the D6 CCK Private Fields, but seems to offer the rest of the functionality needed. Hope this helps someone out.

I'll attempt to contribute it as a module to d.o, to see if anyone else can improve it (I'm already out of my comfort zone). If I fathom it out I'll post the link to the new module, or a sandbox and you can post issues relating to the attached module there, rather than on this queue. Any further comment here should be concerned with a direct port of CCK Private Fields to D7 - such as a review of DrupalDesigner's code (I had a few clashes with the dependent modules, so didn't really want to follow it up).

robcarr’s picture

And here's the sandbox relating to post #25: http://drupal.org/sandbox/arrrgh/1868908

Not sure what trouble I've unleashed for myself here... but - as they used to say in Rome - If you attempt nothing, you will rarely fail

kenorb’s picture

Issue summary: View changes
Status: Postponed » Closed (cannot reproduce)

Version 6.x is no longer supported due to Drupal 6 End of Life.