Are you using the default view for the /default/user action? If so, in that 
view, you could do something like:

{{if request.args(0) == 'profile':}}
{{=BUTTON('Click Me', _onclick='window.location=%s;' % URL('other', 
'page'))}}
{{pass}}

As an alternative to the <button> tag, you could also use a regular <a> tag 
with an href, with the link styled like a button. The new 'welcome' app 
(1.99.3) includes a "button" class for links in skeleton.css, so you could 
do:

{{=A('Click Me', _href=URL('other', 'page'), _class='button')}}

Anthony

On Saturday, December 10, 2011 4:26:57 AM UTC-5, ニコノコ wrote:
>
>
> How do I add a new button in a user's profile page that redirects to 
> another view? 

Reply via email to