LI(A(...),A(...))

You can nest as may helpers and text as you want as long as you
separate them by ,

Massimo

On Mar 27, 5:13 pm, Dave <dfdumar...@gmail.com> wrote:
> Hello,
>
> Is there a way to display two llnks inside a list item? A pointer to
> where I might find an explanation in the docs would be kindly.
>
> I'm trying to do this:
> <ul>{{for project in projects: }}
>         {{=A(project.name,_href=URL(r=request,f='show',args=
> [project.id])) }}
>         {{=A('xml', _href=URL(r=request,f='show',args=
> [project.id,'xml'])) }}
>         {{=LI( A(project.name,_href=URL(r=request,f='show',args=
> [project.id]))
>                A('xml', _href=URL(r=request,f='show',args=
> [project.id,'xml']))
>         )}}
> {{pass}}
> </ul>
>
> Which should simply do this:
>    <ul>
>        <li><a href='show/1'>projectname</a> <a href='show/1/xml'>xml</
> a>
>   </ul>
>
> But I get errors
> /projects/index.html", line 91
>     A('xml', _href=URL(r=request,f='show',args=[project.id,'xml']))
>     ^
> SyntaxError: invalid syntax
>
> Thanks
> Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to