[web2py] Menu no longer renders {{=MENU(response.menu)}}

2020-04-30 Thread 'Annet' via web2py-users
In web2py 2.14 I had the following code in menu.py response.menu = [ (CAT(SPAN('Log in', _class="btn btn-primary")), False, URL('controlpanel', 'default', 'user', args='login', scheme=SECURESCHEME, host=CONTROLPANELDOMAIN)), (CAT(SPAN('Open account', _class="btn btn-success")), False, U

[web2py] Default web2py menu doesn't drop down on mobile or display on narrow desktop browser

2018-10-06 Thread greenpython . py
Default welcome app displays the "three bars" on the right, containing the condensed menu. The collapsed menu icon displays by default on mobile and is the only way to view the menu. Tapping on that icon does not display the menu on mobile. On desktop, adjust your browser width until the menu c

[web2py] Menu links with target attribute

2018-06-07 Thread Rakesh Singh
Hello, I have been trying to add external links to the menu system, but they result in malformed or invalid URL's when setting the target attribute. There are some old posts in the group regarding this, but none of the suggestions have worked. Web2py version : 2.16.1-stable Example: response.m

[web2py] Menu option on We2py 2.16.1-stable doesnt open on cellphones

2018-05-24 Thread mostwanted
Hi guys, my menu is not opening on cellphones, i can not access my menu when i open my website on a cell phone, i am using 2.16.1-stable version. Is there something wrong with this version or the problem is my application? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] menu separator line

2018-02-14 Thread Andrea Fae'
How to insert a separator line between 2 menu items? Thank you -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are s

[web2py] menu li > a padding in case of button

2017-12-02 Thread 'Annet' via web2py-users
I have the following menu: response.application_menu = [ (CAT(I(_class="fa fa-search")), False, URL('default', 'search')), (CAT(SPAN('Log in', _class="btn btn-primary")), False, URL('com', 'default', 'user', args='login', scheme=SECURESCHEME, host=COMDOMAIN)), (CAT(SPAN('Open account'

[web2py] menu

2016-12-31 Thread briannd81
I'm using a bootstrap theme that comes with its own menu. How do I add web2py's wiki menu to the bootstrap's theme? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Is

[web2py] Menu not working after redirecting to another view

2016-06-30 Thread ktesr123456
Team I am redirecting to a view using {{redirect(URL('ShowData')) the menu is not working as both the views got "extend layout.hml" it is overwriting and blocking the menu to work I have a menu with 5 menu items in it, when the first view loads it works fine but after redirecting to another vi

Re: [web2py] web2py menu dies?

2015-06-09 Thread Richard Vézina
Paste the whole code here if you can, because it is really hard to see the relation between your issue with menu and the "psedo" code you show above... On Tue, Jun 9, 2015 at 3:07 PM, LoveWeb2py wrote: > No errors, Richard. I checked in Chrome. It looks like the div's are all > okay too. Wasn't

Re: [web2py] web2py menu dies?

2015-06-09 Thread LoveWeb2py
No errors, Richard. I checked in Chrome. It looks like the div's are all okay too. Wasn't sure if anyone else had this problem. A little more insight: I select a record by doing {{myrecords = db(db.table.field==db.anothertable.anotherfield).select(db.table.field.ALL)}} then i check to see {

Re: [web2py] web2py menu dies?

2015-06-09 Thread Richard Vézina
Did you check for js error in chrome dev tool? You must have an error somewhere, a missing lib or something... On Tue, Jun 9, 2015 at 1:02 PM, LoveWeb2py wrote: > Sometimes my menu just stops working and users can't click the links. > > It's specific to one page that uses a modal and bootstrap.

[web2py] web2py menu dies?

2015-06-09 Thread LoveWeb2py
Sometimes my menu just stops working and users can't click the links. It's specific to one page that uses a modal and bootstrap. Is there any known reasons of why this might be happening and what could I check to troubleshoot? -- Resources: - http://web2py.com - http://web2py.com/book (Documen

[web2py] MENU - active element

2015-04-20 Thread Dmitry Ermolaev
active element in MENU insert in documentation and in layout.html =MENU(response.menu, _class='mobile-menu nav' if is_mobile else 'nav',mobile=is_mobile,li_class='dropdown',ul_class='dropdown-menu', *active_url=URL()*) and in css: .

[web2py] Menu helper and controller

2015-03-20 Thread Gael Princivalle
Hello all. With an app my URL is my_domain.com/my_function . Perfect, I don't have the application name. Website administration is made with another controller called admin. When I call an admin function, there's the application name and controller in the url. my_domain.com/my_app/admin/my_fun

[web2py] menu - what means the 2nd parameter in tuple?

2015-03-16 Thread Mirek Zvolský
I cannot find, what means the 2nd parameter in tuple in response.menu assignment. It is always (in code I see) - False. response.menu = [ (T('List'), False, URL('default', 'index'), [ # False ? (T('Main list'), False, URL('default', 'index'), []),

Re: [web2py] web2py menu and CTRL+Click redirect both actual and new tab

2015-03-03 Thread Richard Vézina
l.com> wrote: > >> >> >> On Wed, Feb 25, 2015 at 5:15 PM, Dave S wrote: >> >>> >>> >>> On Wednesday, February 25, 2015 at 11:25:06 AM UTC-8, Richard wrote: >>>> >>>> Hello, >>>> >>>> I am not sure

Re: [web2py] web2py menu and CTRL+Click redirect both actual and new tab

2015-03-03 Thread Richard Vézina
t; > On Wed, Feb 25, 2015 at 5:15 PM, Dave S wrote: > >> >> >> On Wednesday, February 25, 2015 at 11:25:06 AM UTC-8, Richard wrote: >>> >>> Hello, >>> >>> I am not sure where is it from, but I notice and change in the behavior >>> of CT

Re: [web2py] web2py menu and CTRL+Click redirect both actual and new tab

2015-02-26 Thread Richard Vézina
On Wed, Feb 25, 2015 at 5:15 PM, Dave S wrote: > > > On Wednesday, February 25, 2015 at 11:25:06 AM UTC-8, Richard wrote: >> >> Hello, >> >> I am not sure where is it from, but I notice and change in the behavior >> of CTRL + Click over main web2py m

Re: [web2py] web2py menu and CTRL+Click redirect both actual and new tab

2015-02-25 Thread Dave S
On Wednesday, February 25, 2015 at 11:25:06 AM UTC-8, Richard wrote: > > Hello, > > I am not sure where is it from, but I notice and change in the behavior of > CTRL + Click over main web2py menu and submenu entry which in the pass were > only open an new tab conducti

[web2py] web2py menu and CTRL+Click redirect both actual and new tab

2015-02-25 Thread Richard
Hello, I am not sure where is it from, but I notice and change in the behavior of CTRL + Click over main web2py menu and submenu entry which in the pass were only open an new tab conducting the user on the requested page base on menu entry link. But now, when doing CTRL + Click over menu and

[web2py] Re: web2py-menu-active li_active='active' help

2015-01-31 Thread LoveWeb2py
That is perfect, Leonel! Very simple... Can't believe I didn't think of that on my own lol. Thanks again! On Saturday, January 31, 2015 at 9:44:29 PM UTC-5, Leonel Câmara wrote: > > Here's a real life working example in one of my apps > > response.menu = [ > (T('Home'), request.controller ==

[web2py] Re: web2py-menu-active li_active='active' help

2015-01-31 Thread Leonel Câmara
Here's a real life working example in one of my apps response.menu = [ (T('Home'), request.controller == 'default' and request.function == 'index', URL('default', 'index'), []), (T('Urgent Needs'), request.controller == 'needs', URL('needs', 'index'), []), (T('Debate'), request.c

[web2py] web2py-menu-active li_active='active' help

2015-01-31 Thread LoveWeb2py
Hello, I tried following this example: http://web2py.com/books/default/chapter/29/05/the-views#MENU This thread: https://groups.google.com/forum/#!msg/web2py/Jc2qOVJ-Zws/yLzKdWb-y3cJ Is there a way in my menu to dynamically change the False to True based on request? I've tried following the ex

[web2py] menu creation error

2014-08-08 Thread ocascante
Hello, I am trying to create a menu following a web2py video in youtube: http://www.youtube.com/watch?v=_4to_44DcJU This is my db: *# coding: utf8* *db.define_table('categorias',* *Field('nombre',requires=IS_UPPER(),unique=True))* This is my menu code: response.menu = [

[web2py] Menu for anonymous and logged

2014-05-19 Thread Fabiano Almeida
Hi all! It's possible make differ menu for groups or logged users in "models/menu.py" ? How? Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issue

[web2py] MENU helper does not add active class

2014-03-22 Thread Ruud Schroen
Hi, I'm using the web2py MENU helper, but whenever i visit a page, the MENU helper does not add a active class to the li.. In the view: {{=MENU(response.menu,_id='navigation')}} In the model: submenu=[] response.menu = [(T('Home'), False, URL(&#

[web2py] MENU helper's menu item 2nd argument ignored?

2013-11-17 Thread Scott Hunter
As I understand it, the second argument in a menu item (which does not seem to be documented in the book) indicates if the item is disabled (True) or not (False). In fact, in the menu generated by the app wizard, this argument is given an expression comparing the same URL() as used for the men

[web2py] MENU helper and bootstrap

2013-06-08 Thread Tim Richardson
I've manually built a bootstrap menu for use in SQLFORM.grid. Apart from having to make the links column wider with CSS, it works well. "manually" means assembled with DIV, UL, LI, A and B helpers. I used data-toggle which means a click to expand the menu and a click to close it again, which is

[web2py] Menu item without URL

2013-04-29 Thread LJ
Hi How can i create a menu item without a URL? Basically what i want is that if a menu item expands into a submenu, then that menu item should not be clickable, only the sub menu items should have URLs. If i write it as None, it still gets converted to a default URL (default/index) For eg. "M

[web2py] menu not backward compatible.

2013-03-03 Thread Annet
In my application I have the following menu in menu.py response.util_menu=[ ['Disclaimer',request.function=='disclaimer',URL('util','static',args='disclaimer')], ['Privacy',request.function=='privacy',URL('util','static',args='privacy')], ['Copyright',request.function=='copyright',U

[web2py] menu flickering with safari

2012-11-06 Thread VP
I put a number of drop-down menus in model/menu.py On Safari, these drop-down menus have some flickering/ghost problems. The problem shows up consistently when you move the mouse pointer *quickly* to different drop-down lists. There doesn't seem to be a problem on Chrome. I suspect it has to

[web2py] "MENU helper" and "Server-side DOM" work together?

2012-09-11 Thread amphisia pui
ng to remove unnecessary tags but in a web2py shell I got mlist = ... well formatted web2py menu list In [40]: mmenu = MENU(mlist) In [41]: mitems = mmenu.elements('a') --- AttributeError

[web2py] menu, mobile phones and tablets

2012-08-21 Thread Martin Weissenboeck
I have played with some menu details and these are my results First try: response.menu = [ (T('Home'), False, URL('default','index'), [ (T('Dummy1'), False, URL('default','index'), [],), (T('Dummy2'), False, None, [],), (T('Desktop'), False, URL('default','index'), [],

Re: [web2py] menu and drop down menu

2012-05-31 Thread Annet
Hi Richard, Thanks for your reply. I think there is one {{pass}} missing for the else: That's what I thought, however, it was the dropdown-menu ul I messed up, it missed a closing tag. Kind regards, Annet

Re: [web2py] menu and drop down menu

2012-05-31 Thread Richard Vézina
I think there is one {{pass}} missing for the else: Richard On Thu, May 31, 2012 at 2:57 AM, Annet wrote: > In a view site/menu.html I have the following code to generate a menu with > drop down menus. > > > > {{for _name,_active,_link in session.site_menu:}} > {{if session['%sDro

[web2py] menu and drop down menu

2012-05-30 Thread Annet
In a view site/menu.html I have the following code to generate a menu with drop down menus. {{for _name,_active,_link in session.site_menu:}} {{if session['%sDropdown' % _name]:}} {{=_name}} {{for _name,_active,_link in session['%sD

Re: [web2py] Menu Items

2012-04-22 Thread Bruce Wade
This is javascript and css related. With them two technologies you can get any type of attractive menu you like :D On Sun, Apr 22, 2012 at 11:37 AM, Vibhor Purandare < vibhor.purand...@zero-group.com> wrote: >I want attractive menu like HTML 5 How would i get > that in web2py

[web2py] Menu Items

2012-04-22 Thread Vibhor Purandare
I want attractive menu like HTML 5 How would i get that in web2py

[web2py] menu issues when no subitems

2012-04-12 Thread anonymouse
Hi, [FYI, my problem is SOLVED -- But I still wonder about this...] I have been using a menu with web2py since v1.8x (currently 1.98.2). I now have 3 different versions running on three different servers. PRODUCTION -- 1.98.2 -- menu is OK TEST - 1.99.3 -- menu is screwy DEV - 1.99.4 -- menu i

[web2py] menu problem when importing layout

2011-11-15 Thread thodoris
Hello, When i install any layout in my app, i always have the following problem with the menu. Instead of the menu just expanding and covering the text bellow, it "pushes" all the text under it. I know that it should be a css problem but since i am new to css i would appreciate the help. The layou

Re: [web2py] Menu based on Boolean table fields.

2011-03-21 Thread Martín Mulone
Take a look to this code. #list slices who own def my_slices(): user_id = session.auth.user.id slices = db(db.slices.user_id == user_id).select(db.slices.id, db.slices.title) myslices = [ (T('Add slice'), False, A(T(

[web2py] Menu based on Boolean table fields.

2011-03-21 Thread annet
In db.py I defined the following table: db.define_table('cardfunction', Field('company_id',db.company,default='',notnull=True,unique=True), Field('home',type='boolean',default=True), Field('logo',type='boolean',default=False), Field('tagline',type='boolean',default=False), Field('

[web2py] Menu based on Boolean table fields.

2011-03-21 Thread annet
In db.py I defined the following table: db.define_table('cardfunction', Field('company_id',db.company,default='',notnull=True,unique=True), Field('home',type='boolean',default=True), Field('logo',type='boolean',default=False), Field('tagline',type='boolean',default=False), Field(

[web2py] MENU items with target='_blank'

2010-12-18 Thread Bruno Rocha
Hi, *I am trying to change every A item of MENU object, including target='_blank' attribute,* *menu is a '' tag* >>> ul = UL(LI(A('test',_href='default'))) >>> print ul test *I thought I could change MENU in this way:* >>> ul.elements('a')[0].attributes {'_href': 'default'} >>> ul.elements('a')

[web2py] MENU improvements

2010-11-03 Thread Martin.Mulone
I want to pass to classical menu response.menu = [ (T('Home'), False, URL(request.application,'default','index'),'', []) ] something like _onclick="" to make an ajax call. I implement myself my own menu class, but broke the compatibility. There are any way to do this?, because is very use

[web2py] MENU issues ...

2010-10-13 Thread Stef Mientki
hello, thanks to you all I got the left sidebar menu working, great !! Still a few questions : 1. In chapter 5, it says, each MENU item takes 3 parameters "as described in chapter 4", but I can't find the description of these parameters, where should I look, and more what does that second para

Re: [web2py] MENU() redefine defaults for _class, ul_class, li_class

2010-07-22 Thread Andrew Thompson
On 7/22/2010 7:37 PM, Andrew Thompson wrote: Is it possible to redefine the defaults for _class, ul_class, and li_class on a per app basis? Nevermind, I'm an idiot. -- Andrew Thompson http://aktzero.com/

[web2py] MENU() redefine defaults for _class, ul_class, li_class

2010-07-22 Thread Andrew Thompson
Is it possible to redefine the defaults for _class, ul_class, and li_class on a per app basis? -- Andrew Thompson http://aktzero.com/

[web2py] Menu Refresh

2010-07-12 Thread Casey Schroeder
Hi to all, I had a question: I noticed that when i tried to make my response.menu dynamic, based on the values in the session, there was a lag in the update: i.e. I would set the session values in the controller for the current page, but the menu appears to already be rendered based on the values

[web2py] Menu Selected option

2010-04-28 Thread DJ
class = 'web2py-menu web2py-menu- horizontal')}} {{pass}} Thanks for your help! -Sebastian

[web2py] Menu css

2010-03-16 Thread Johann Spies
I am struggling to find out exactly how the default web2py menu system uses the css. I want to change the background colour and the text colour of the menu. A pointer will be very helpful please. Regards Johann. -- "Blessed are the poor in spirit: for theirs is the kingdom of h

[web2py:35394] Re: Missing web2py-menu-active definition in base.css?

2009-11-15 Thread mdipierro
thanks. will do. On Nov 15, 4:17 am, Iceberg wrote: > I noticed the MENU() helper uses a "web2py-menu-active" status, but > there is no corresponding definition in static/base.css > > Suggest to add this into the default base.css: >   .web2py-menu-active a {background-c

[web2py:35391] Missing web2py-menu-active definition in base.css?

2009-11-15 Thread Iceberg
I noticed the MENU() helper uses a "web2py-menu-active" status, but there is no corresponding definition in static/base.css Suggest to add this into the default base.css: .web2py-menu-active a {background-color: white;} So that the active menu item will be shown in white backgr