Authors Role

Events happening in the community are now at Drupal community events on www.drupal.org.
llizards's picture

I am still working on my directory http://justkansas.com.

I have used CCK to create the content type that is listed in the directory. I have a few fields that I would like to make available for paying memberships. I know that we can control the access to CCK fields by roles. But I am looking for a way to theme a node's display according to the author's role.

IF author role=role1 then use this code with all field entries displayed
IF author role=role2 then use this code without a certain field

If a member pays for just one month adds his site then cancels membership. His listing will still have the fields there until he tries to edit.

Just looking for thoughts or ideas on how to go about this.

Thanks in advance

Comments

Display node content based on authors role

PeterZ's picture

Best discussion I've seen of this is here: http://groups.drupal.org/node/6780

I haven't done it yet, but seems you need to do it in theming.

I haven't found a module that does this yet, although jaykali seems to be working on one: http://drupal.org/node/237538.

Business Directory

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week