[support] Dynamically display menu items?

toon severijns toon.severijns at gmail.com
Tue Jun 7 22:02:47 UTC 2011


Hey Joel,

I tried your way but using the view as a context (the context would display
or not display a menu block). No luck so far ( i can't seem to get context
working properly).
Going to let that method rest for a while. Thank you so much for all the
help!

Best,


Toon

On Tue, Jun 7, 2011 at 10:57 PM, Joel Willers <joel.willers at sigler.com>wrote:

> I'm suggesting that the menu is created by the view that I'm discussing.
>  You make it a 'block' view, and have the result be the menu.  The empty
> text is the alternate menu.
>
> So if the menu was <ul><li>Item 1</li><li>Item 2</li><li
> class="project">Item 3</li></ul>, then have the only field be a Global
> custom text as the above.  Then the empty text should be <ul><li>Item
> 1</li><li>Item 2</li></ul>
>
> Then go to Blocks and find the view, and use this as the menu.
>
> Joel
>
>
> Joel, thanks for all the help. My view already works fine. I get an empty
> result if there was no project flagged bu the user, but the corresponding
> menu item is still displayed. I think i'm missing something. I don't see
> what you mean by:
>
> "If there is no project for that user, then the View doesn't fire, so you
> create the menu in Empty Text area.  So one menu could be in Global:custom
> text, and the other in Empty Text."
>
> Thanks again!
>
>
> Toon
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110608/c9de253d/attachment.html 


More information about the support mailing list