On Friday, October 7, 2011 1:31:08 AM UTC-4, miroslavgojic wrote:
>
> Thanks for blocks - that work, this is similar to modules in joomla, I can 
> write small block and get content on specific place at layout.
>
> I tray to use next code:
> response <http://web2py.com/book/default/docstring/response>.menu = 
> [('Google', False, 'http://www.google.com',[]),
>
>                  ('Index',  True,  URL 
> <http://web2py.com/book/default/docstring/URL>('index'), [])]
>
> but without any success.
> I reed in book that mentioned code I must put in controller but how to get 
> same than in layout and does in controller I must use definition or haw.
>

Can you show the relevant controller and view code related to the menu? What 
do you expect to see, and what do you actually see? Note, typically you 
would pass response.menu to the MENU() helper, which will turn it into a 
nested unordered list, which can then be styled/displayed as a menu via CSS 
and/or Javascript (e.g., the 'welcome' app uses the Superfish Javascript 
menu).

Anthony

Reply via email to