How to hide cck field

electronicmonkey - December 2, 2008 - 13:39

I have created a new field for a content type using CCK . However I want to make the display of this field invisible only to those logged in or subscribed . How can I succeed ?

=-=

VeryMisunderstood - December 2, 2008 - 13:55

http://drupal.org/search/node/cck+field+permissions

which reveals the cck field permissions module.

or, instead of adding

arh1 - December 2, 2008 - 14:46

or, instead of adding another module you may prefer to tweak your theme to accomplish this. there are many ways to theme CCK data, but wherever you're going to show the field you can do something like this:

<?php
global $user;
if (!
$user->uid) {
 
// print the field data here; only anonymous users will see this
}
?>

 
 

Drupal is a registered trademark of Dries Buytaert.