I see you're using font-awesome.  You need to add "fa" as well as the icon 
name you want "fa-home".  I also recommend you use the URL helper if you 
ever want the url re-writing features of web2py.  My recommendation is:

A(I(_class="fa fa-home"),SPAN("Home",_class="menu-item-parent"),_href=URL(
'index'))

Please notice the underscore in the "class" and "href" entries.  That is 
how web2py knows you want those to wind up on the final HTML version of the 
element and keeps the names from colliding with Python identifiers (like 
"class").


On Wednesday, May 14, 2014 2:59:03 PM UTC-7, greenpoise wrote:
>
> I need help with this helper!
>
> I have this
>
> <a href="index.html" title="Home"><i class="fa-home"></i> <span class=
> "menu-item-parent">Home</span></a>
>
>
> and I made this:
>
> [A(I(SPAN(_class=('menu-item-parent','Home')), _class='fa-home',_title=
> 'Home',), False, None, []),]
>
>
>
> I am missing the URL('home") cant get it to work. Where should I put it?
>
>
> thanks
>

-- 
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 subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to