Hi,

I have searched the forums and cannot find much on this. I may be overlooking a feature already available through one or more modules but I don't think so. Here is what I want to do:

Going to use the Categories module along with the CCK to create some structured documents that will be custom node-types. I would like these nodes to appear differently to users of different roles. So when users of role1 look at the node, they see a set of basic information. However when users of role2 look at the same node, they see much more detailed information. My aim is to not have to create redundant nodes for each role. I would like to have just one master version of the node that can be accessed many different ways by each role.

It would be nice if this worked for both Editing and Viewing, but the Editing is not really neccessary at this point.

The only thing I can find seems to require custom PHP code for each field that I would want to hide, which would be a huge pain becuase this feature would apply to almost the entire site. Here is the node that I have found for the PHP code:
http://drupal.org/node/45774

So if there is a module, or anything easier than inserting lots of redundant PHP all over my Drupal site, I would love to hear about it!

Thanks much.

Comments

marcoBauli’s picture

hi kingnok,

i am currently looking for something similar:

showing fields depending on the role of the author, not of the viewer.

Actually there is a start of a Per field permissions CCK patch that if implemented should work for both the scopes at http://drupal.org/node/63240
still looks like Content Construction Kit came to almost a full stop in the last months and this feature cannot develop for some reasons (sorry, no coder here!). Still you can try adding your cent to it and cross fingers ;)

If this looks bit too overkill for you, then you might have a look at the Premium module (still for 4.6 if i don't remember bad), that let's you display teasers to unregistered users and full nodes to privileged ones.

..that's all what comes to my mind right now..hope it helps

cheers

gdip’s picture

The Premium module is also for 4.7
Check out http://drupal.org/node/30183/release
and
http://drupal.org/node/30183/