you can, in your controller, call auth.wiki() with your needed variables:
return auth.wiki(env=dict(host=lambda h:request.env.http_host,islocal=
lambda l:request.is_local)
and in the wiki page body, use @{host:} to construct your link:
[[ @{host:/someapp/some/path} ]]
this works for me, though I'd like to be able to do the same with
wiki-menu; even though the above example renders correctly in wiki-menu's
page view, it gets mangled in the drop-down menu itself.
On Wednesday, July 17, 2013 6:40:29 AM UTC-5, peibol wrote:
>
> Hi there, simple question... I'd like to embed links inside the wiki pages
> to some views of my application. Is it possible to use some kind of helper,
> or to embed python expressions in {{}} in order to avoid writing absolute
> urls (which are different in localhost development and maybe dependent of
> deployment)
> Thanks
> Pablo
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.