Are you saying there is already HTML for the links in the comments, or are 
they just URLs that you would like to convert to links?

On Friday, January 11, 2013 9:59:51 AM UTC-5, sasogeek wrote:
>
> How do I make links clickable in my views?
>
> #model
> db.define_table('content'
> ...
> )
> db.define_table('comments',
> ...
> Field('body', 'text'))
>
> #controller
> ...
>     comments = db(db.comment.content_id==db.content.id).select()
>     return dict(comments=comments)
>
> #view
> {{for comment in comments:}}
>      {{if content['id']==comment.content_id:}}
>      <div>
>      <hr/>
>      <b>{{=comment.author}}</b>:
>      {{=comment.body}}<br/><br/>
>      </div>
>      {{pass}}
> {{pass}}
>
>
>
> if there's a link in comment.body, i want it to be clickable... how do i 
> achieve that?
>

-- 



Reply via email to