Active
Project:
CCK premium fields
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2011 at 23:38 UTC
Updated:
17 May 2012 at 20:08 UTC
Hi,
I think this module might be ideal for showing/hiding cck fields depending on the authors role - so making it good for premium roles to show more fields to the end user - but hiding the 'premium' fields when they downgrade back to a 'normal' role?
Are there any plans for a drupal 6 version? Or do you know any other way to achieve similar functionality??
Many thanks,
Joe
Comments
Comment #1
joachim commented> so making it good for premium roles to show more fields to the end user - but hiding the 'premium' fields when they downgrade back to a 'normal' role?
Yes, that's pretty much the way it works. The use case was that all users could post events to a calendar, but only paid users could add a picture. If your paid membership ends, then photos on your existing events no longer show.
I'm afraid though that the client I wrote this for didn't need this any more when they upgraded their site to 6, and I don't have the free time to work on it.
If you yourself work on a D6 version, do please post it here and I'll make a release of it :)
Comment #2
joecanti commentedHi Joachim,
Thanks for your reply. I don't know enough php to do it but I might find someone who does. There seems to be a bit of a need for it too.
Hiding fields the 'field permissions' way seems to be the most robust - can I confirm that this module just deals in permissions - it doesn't actually remove the data? So if the user decides to sign up again to the premium role their content will still be there - the only difference will be that it is shown again to the end user?
And presumably it requires the field permissions module?
Also, if possible could you give me a very rough idea of how many hours it might take to port? I want to go to a couple of developers with some figures in mind.
If I decide to go for it I'll post the D6 version as an issue, and then you can review it and decide whether you want it added to this project.
Many thanks, Joe
Comment #3
joachim commented> can I confirm that this module just deals in permissions - it doesn't actually remove the data? So if the user decides to sign up again to the premium role their content will still be there - the only difference will be that it is shown again to the end user?
That's correct. No data is ever removed, this module merely examines the permissions of the author of a node when displaying it to anybody. It asks "May the author of this node display field X?" and it not, doesn't show it.
> And presumably it requires the field permissions module?
I'm not sure that it does, actually.
I don't really know how long it would take to port this, sorry. It depends on whether CCK has made changes on 6 for this and I don't know offhand. I wouldn't say more than a couple of days though.
Comment #4
carrierawks commentedI would love to see a d6 version of this made. :-)
I must learn PHP better!