[web2py] Re: How to display data at top of nav bar

2015-01-24 Thread Jose C
HI Alex, > (1) where do you keep it so it persists in the navbar?How is 3_menu.py > called? > > My 3_menu.py file is located in the //models/ directory. The files in the directory are processed in alphabetical order (which is why I prefixed a number as my database models are in 2_models.

[web2py] Re: How to display data at top of nav bar

2015-01-24 Thread Alex Glaros
Jose it works great but I don't understand (1) where do you keep it so it persists in the navbar?How is 3_menu.py called? (2) How did you get your mail_count to run when user first logged in? Where is that function located? also, thanks to Richard for your suggestion. Alex -- Resources

[web2py] Re: How to display data at top of nav bar

2015-01-22 Thread Jose C
> > > Assume I don't know how to put anything in nav bar. Which methods and > docs do I write to? > > I do something similar by adding this code to a file in the models directory (i call mine 'menu.py') where you set up response.menu: if no_action_users: response.menu += [

Re: [web2py] Re: How to display data at top of nav bar

2015-01-21 Thread Richard Vézina
Hello Alex, If you use the web2py default layout, the easiest way (if you don't want to customize one yourself) would be to use jquery and add node to the dom. Richard On Tue, Jan 20, 2015 at 3:39 PM, Alex Glaros wrote: > want to know basic method for displaying data in nav bar. For example,

[web2py] Re: How to display data at top of nav bar

2015-01-20 Thread Alex Glaros
want to know basic method for displaying data in nav bar. For example, what is syntax for including something like this in nav bar: {{=numberOfFriendRequests}} friend requests for {{=auth.user_id}} and how to add a tiny envelope icon if possible thanks, Alex -- Resources: - http://web2py.c