[support] Links Available "Conditionally" Within the Same Block

William Smith william.darren at gmail.com
Fri Mar 20 15:59:15 UTC 2009


You'll most likely need to use some PHP in your block contents to
conditionally check on role / group membership.

2009/3/20 Moses Elias <iom at netvision.net.il>

>  I have a block in a sidebar with 3 menu items. Call them A, B, and C.
>
>
>
> 1) A is available to authenticated users.  It allows them to create new
> groups once they are authenticated. Creating a group automatically promotes
> the creator to being a group member and a group admin.
>
>
>
> 2) B is available to authenticated users, who are members of or have
> created one group at least. It allows them to post to a group.
>
>
>
> 3) C is available to authenticated users, who are members of or have
> created one group at least. It allows them to invite users to the group.
>
>
>
> How do I conditionally give authenticated users access to links on the
> basis of their roles within the same block (and not separate blocks)?
>
>
>
> What I have found so far is that either the entire block is visible or
> invisible. What I want instead is that some of the links should be present
> under certain conditions while at other times not.
>
>
>
> Moses
>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.drupal.org/pipermail/support/attachments/20090320/3fb1cf05/attachment-0001.htm>


More information about the support mailing list