Hello guys! Long time no see :)
With HTML5 attributes being widely used, I thought I could add one to the
response.menu
I tried but it didn't work, I appreciate help and pointers! =)
This is the current response.menu generated HTML (specifically, the *first*
ul):
...
...
...
This is the
This does not work. No image is displayed. The layout seems to lose it too,
the response menu now has 2 rows this causes things to be obscured by
it. Should I be trying this at all? If the menu was designed for text only
ok but put it in the Docs. This was the only change I did to the
So... I have a couple functions defined in default.py:
@auth.requires_login()
def index():
response.flash = T('Welcome!')
grid = SQLFORM.grid(db.project, create=False,
fields=[db.project.name, db.project.employee_name,
db.project.company_name,
Hi,
I like to be able to set some link attributes in my response menu:
I want some links to open in a new tab: target=blank
and I would love to set some alt atributes for the links in the response
menu.
Is that even possible?
thanks
--
---
You received this message because you are subscribed
Hi,
when I add normal links to a site I use the A() helper where I can add a
title tag (_title=) is there a way to add those to my links in the
response menu?
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group
Hi guys,
This is a typical code
response.menu = [
(T('Home'), False, URL('default','index'), [])
]
I would like to ask, what does the 2nd arg, False actually refer to?
I tried changing it to True but it didn't seem to have any effect on the
menu.
I tried a quick search on the manual and
In menu.py I have the following code:
response.cms_menu = [['Home',request.controller=='cms' and
request.function=='index',URL('cms','index')]]
def adjustCmsMenu():
if session.cmsadmin_menu:
hi,all,
hope get help from you,
{{=('|'.join(A(_[0],_href=_[2]).xml() for _ in response.menu))}} suppose to be
several links on webpage, but it appear to be string on my app, how to change
it?
thanks,
Frank
The menu helper (web2py) is not compatible with twitter bootstrap menu.
2012/3/7 Paolo ilva...@inventati.org
Hi all,
I have a simple problem that I haven't solved yet. Using the twitter
bootstrap theme I am not able to create a dropdown menu playing with the
MENU helper. According to [1], an
Hi all,
I have a simple problem that I haven't solved yet. Using the twitter
bootstrap theme I am not able to create a dropdown menu playing with the
MENU helper. According to [1], an anchor to create the dropdown menu
needs the attributed data-toggle equal to dropdown; the problem is
that I
I have a scenario where there are 2 methods. A and B
A uses form1
and
B uses form2
Now, I need to pass a dynamic value of a variable from A( using
form1 ) to B .
I want to pass this variable to a menu item. Once the menu is clicked
that particular form should have my dynamic variable.
Is there
I'm new to web2py and trying to set up my site from the beginning. I
was trying to customize my menu, and couldn't find any relevant
documentation on response.menu. For example, in the code:
response.menu = [
(T('Home'), False, URL(request.application,'default','index'), [])
]
what is
12 matches
Mail list logo