In general, any "attribute" for an HTML helper can be set by referring
the the HTML tag name:  this
in the helper as:  _this

So, your original question can change to:   "How do I set the target
tag in the A()  helper?

On Jun 30, 10:36 am, Giuseppe Luca Scrofani <[email protected]>
wrote:
> Sorry for the typo, it is exactly a _blank target attribute
>
> desidered output
>
> <a href ="show" target="_blank">link name</a>

Like this:

A( B('link name'),  _href = URL(r=request, f='show', args=x.id),
_target = "_blank" )

Hope this helps,
- Yarko

Reply via email to