<ul>
{{for obra in obras:}}
<li><a href="{{=URL(r=request, f='mostrar', argc=[obra.id])}}"
title="">{{=obra.numero}} {{=obra.nome}}</a></li>
{{pass}}
</ul>
Why do you want to use "HTML Helpers".. well.. in HTML??, please don't
get me wrong, I am not complaining about your code in particular, but
in html helpers themselves, IMHO they can potentially create really
nasty views (and don't get me started on using them in controllers :)
Anyway I truly hope your problem gets resolved.
Julio
On Aug 13, 5:31 am, "Sebastian E. Ovide" <[email protected]>
wrote:
> did you try this ?
>
> {{=LI(A(123,_href="someurl"),"some text")}}
>
>
>
> On Thu, Aug 13, 2009 at 12:43 PM, Carlos Aboim <[email protected]> wrote:
>
> > Hi everyone once again :-)
>
> > I am having a problem with a visualization of a HTML list from a view
>
> > So:
> > I got :<ul>{{for obra in obras:}}
> > {{=LI(A(obra.numero, obra.nome), _href=URL(r=request,
> > f='mostrar', args = [obra.id]))}}
> > {{pass}}
> > </ul>
>
> > I want it to be like this: obra.numero (should be link), obra.nome
> > (plain html text)
>
> > for obra in obras
>
> > <obra.numero> <obra.nome>
> > <obra.numero1> <obra.nome1>
> > <obra.numero2> <obra.nome2>
> > <obra.numero3> <obra.nome3>
>
> > I tried several exemples but no sucess! as:
> > <ul>{{for obra in obras:}}
> > {{=LI(A(obra.numero), (obra.nome), _href=URL(r=request,
> > f='mostrar', args = [obra.id]))}} # no space btw
> > {{pass}}
> > </ul>
>
> > <ul>{{for obra in obras:}}
> > {{=LI(A(obra.numero, _href=URL(r=request, f='mostrar', args =
> > [obra.id]))}}{{=LI(obra.nome)}} # 2 lines
> > {{pass}}
> > </ul>
>
> > I need your help
>
> > Thank you
> > Carlos Aboim
>
> --
>
> Sebastian E. Ovide
>
> skype: seezov
>
> +353 87 6340149
>
> Sent from Dublin, Ireland
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---