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

Cosmo drupallist at dirtsimple.net
Sat Mar 21 20:19:26 UTC 2009


Have you seen this yet?

http://drupal.org/node/51325#comment-1255358

"I'm using Taxonomy Access Control to restrict access by user role in a
Drupal5 installation. The Remove Nonviewable Menu Items module made hiding
the off limits menu items easy.

http://drupal.org/project/remove_nonviewable_menu_items"


  -----Original Message-----
  From: support-bounces at drupal.org [mailto:support-bounces at drupal.org]On
Behalf Of Moses Elias
  Sent: Friday, March 20, 2009 11:44 AM
  To: 'John Callahan'
  Cc: support at drupal.org
  Subject: Re: [support] Links Available "Conditionally" Within the Same
Block


  John said:

  >> I'm not if it will solve your problem but Views can be restricted to
roles.  When editing  a view, check the Access item under >> Basic Settings.



  Thanks for the tip John. The View can actually be restricted to certain
Roles (I believe), but it doesn't make the link itself that calls the View
_NOT_ appear which is what I need.



  Moses





**************************************************John CallahanGeospatial
Application DeveloperDelaware Geological Survey, University of Delaware227
Academy St, Newark DE 19716-7501Tel: (302) 831-3584  Email:
john.callahan at udel.eduhttp://www.dgs.udel.edu*******************************
*******************

  Moses Elias wrote:

  John said:

  >> If these links went to actual pages (that contained more information,
integrated web forms, additional links), then you can set >> access controls
to those pages, such as through Content Access/ACL.   I am not sure but I
think the Drupal menu system will >> take the page permissions into account
before displaying the menu links.  I could be wrong though.



  Unfortunately Drupal isn't so straightforward as to provide a one to one
relationship between an accessible/inaccessible node and the permissions
page (which would have been great). One has to fiddle and experiment for
quite some time before the relationship is clear sometimes.



  Besides the path to the nodes in question are defined through a View (and
not a page) and so I believe Content Access/ACL will be redundant. How do
you grant access to a _View_ based on role? Is there a way? Please correct
me if I am wrong?



  Moses






----------------------------------------------------------------------------
--

  From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of John Callahan
  Sent: Friday, March 20, 2009 6:09 PM
  To: support at drupal.org
  Subject: Re: [support] Links Available "Conditionally" Within the Same
Block



  If these links went to actual pages (that contained more information,
integrated web forms, additional links), then you can set access controls to
those pages, such as through Content Access/ACL.   I am not sure but I think
the Drupal menu system will take the page permissions into account before
displaying the menu links.  I could be wrong though.

  - John




**************************************************John CallahanGeospatial
Application DeveloperDelaware Geological Survey, University of Delaware227
Academy St, Newark DE 19716-7501Tel: (302) 831-3584  Email:
john.callahan at udel.eduhttp://www.dgs.udel.edu*******************************
*******************

  Moses Elias wrote:

  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/20090321/23af3f1f/attachment-0001.htm>


More information about the support mailing list