Re: tried but maybe too newbie for that.

Posts: 67
Joined: 08/10/2007

I got that working just fine, but the question still remains - how would I code it so that if the user is not logged in I would "hide" the sell_price and few other fields AND change the #value of sell_price to actually display a login link AND show that sell_price variable (since I am having a problem with it being hidden due to this:

$node->content['sell_price']['#access'] = $node->content['sell_price']['#access'] && $user->uid;

and how could I extend this feature for teaser listings as well?

Hide price unless Logged in? By: Miso (21 replies) Wed, 09/26/2007 - 20:41