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
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
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
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
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
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'
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
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
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
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 {
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.
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
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:
.
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
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'), []),
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
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
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
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
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
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 ==
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
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
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 = [
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
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(
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
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
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
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
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
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
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'), [],
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
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
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
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
I want attractive menu like HTML 5 How would i get that
in web2py
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
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
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(
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('
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(
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')
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
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
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/
Is it possible to redefine the defaults for _class, ul_class, and
li_class on a per app basis?
--
Andrew Thompson
http://aktzero.com/
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
class = 'web2py-menu web2py-menu-
horizontal')}}
{{pass}}
Thanks for your help!
-Sebastian
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
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
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
53 matches
Mail list logo