On Sat, May 22, 2010 at 11:04 AM, gazza <[email protected]> wrote: > Hey Guys, > > I appreciate the help on this. > > I am getting closer but no cigar. > > ${h.link_to(h.literal('<span class="buttonred"> List Client Orders </ > span>'),h.url_for(controller='client',action='clientorderlist',id=c.id))}
> The below works but I dont want to use an absolute link: > > <a class="buttonred" href="http://www.orders.com/client/list/ > id"><span> list</span></a> Pass the extra HTML attributes as keyword args: ${h.link_to("List Client Orders", url(controller="client", action="clientorderlist", id=c.id), class_="buttonred")} Note that url_for is going away in Pylons 1. Use ``url()`` instead ; ``pylons.url()`` outside templates. -- Mike Orr <[email protected]> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
