If it were me, I'd use Views and detect the User based on role and probably use Custom Field module for PHP and do all sorts of tests in there. Since it's a block, though, arguments aren't passed, so you could do a Default argument from PHP and do all sorts of fun PHP code in there, so you wouldn't need an additional module.
Or you could assign a role using a Rule, or have the User based on an argument (again, default argument, Current Logged in User), and use Empty Text to show a different menu based on the existence of that project.
Actually, I kinda like that last idea...
Joel
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Joel Willers Sent: Tuesday, June 07, 2011 1:03 PM To: support@drupal.org Subject: Re: [support] Dynamically display menu items?
You could make two blocks, put them in the same place and assign visibility settings based on role. There are many options, though.
Joel
From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of toon severijns Sent: Tuesday, June 07, 2011 1:01 PM To: support@drupal.org Subject: [support] Dynamically display menu items?
Hello all,
Let's i want to display or not display a menu item depending on some property of the logged in user. E.g. when my user has selected a project (i.e. a reference to the project can be found through the user) i want to display a menu item "my project", if not i want to display a different menu item "available projects". How do i do this? Context? Rules? Menu hooks?
Any ideas?
Best,
Toon