[web2py] Re: which files are checked for menu?

2012-06-26 Thread song
Thanks a lot,  Massimo !!!



2012년 6월 26일 화요일 오전 10시 45분 9초 UTC+9, song 님의 말:
>
> Hi!
>
> I'm studying  hard.
> I will change the  menu in the top of the screen. There are some menus 
> like Login, Lost Password.
> But unhappily there are no menu.py ( in  models directory).
>
> I want to change the menus including some others like the Login, Lost 
> Password, Register   etc..
>
> Which files will be changed ?  main  db files, or controllers ?
>
>

-- 





[web2py] Re: which files are checked for menu?

2012-06-25 Thread Massimo Di Pierro
The scaffolding application uses views/layout.html which displays

{{=MENU(response.menu)}} on the left and
{{=auth.navbar()}} on the right.

response.menu contains the menu items defined in modes/menu.py

The auth.navbav() returns a helper object. You cannot alter it but you can 
defined your own or you can modify it. For example:

{{
navbar=auth.navbar()
navbar.append(A('mylink',_href=URL()))
=navbar
}}



On Monday, 25 June 2012 20:45:09 UTC-5, song wrote:
>
> Hi!
>
> I'm studying  hard.
> I will change the  menu in the top of the screen. There are some menus 
> like Login, Lost Password.
> But unhappily there are no menu.py ( in  models directory).
>
> I want to change the menus including some others like the Login, Lost 
> Password, Register   etc..
>
> Which files will be changed ?  main  db files, or controllers ?
>
>

--