Hey Joel, thank you so much!<div>I think i could do it if i would be able to load the currently logged in user in the &quot;Show if the following PHP code returns TRUE&quot; box of the menu block. Can i do that? How?</div>
<div><br></div><div>Alternatively, could you elaborate a bit on your last suggestion please?</div><div><br></div><div>Best,</div><div><br></div><div><br></div><div>Toon</div><div><br><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 8:17 PM, Joel Willers <span dir="ltr">&lt;<a href="mailto:joel.willers@sigler.com">joel.willers@sigler.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">If it were me, I&#39;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&#39;s a block, though, arguments aren&#39;t passed, so you could do a Default argument from PHP and do all sorts of fun PHP code in there, so you wouldn&#39;t need an additional module.<br>

<br>
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.<br>
<br>
Actually, I kinda like that last idea...<br>
<font color="#888888"><br>
Joel<br>
</font><div class="im"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>] On Behalf Of Joel Willers<br>
Sent: Tuesday, June 07, 2011 1:03 PM<br>
To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
</div><div><div></div><div class="h5">Subject: Re: [support] Dynamically display menu items?<br>
<br>
You could make two blocks, put them in the same place and assign visibility settings based on role.  There are many options, though.<br>
<br>
Joel<br>
<br>
From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>] On Behalf Of toon severijns<br>
Sent: Tuesday, June 07, 2011 1:01 PM<br>
To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
Subject: [support] Dynamically display menu items?<br>
<br>
Hello all,<br>
<br>
Let&#39;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 &quot;my project&quot;, if not i want to display a different menu item &quot;available projects&quot;. How do i do this? Context? Rules? Menu hooks?<br>

<br>
Any ideas?<br>
<br>
Best,<br>
<br>
<br>
Toon<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br></div>