Forum OpenACS Q&A: How to return url for xowiki::formPage

I am trying to create an includelet for a facebook 'like' link. I am basing it on the digg includelet.

Can anyone tell me how to I identify the url for the xowiki Page or formPage that an includelet has been embedded in?

Regards
Richard

Collapse
Posted by Richard Hamilton on
set url [::xo::cc set url]

:-)

Collapse
Posted by Richard Hamilton on
Ah, no, that is the requested url. What I need is the url that is registered with the request processor for the ::xowiki::Page(s) that are shown in the weblog portal. This so that I can add a Facebook 'Like' link that is specific for each weblog posting.
Collapse
Posted by Richard Hamilton on
I know, answering your own questions is a really bad habit!

set url "[ad_conn location][$__including_page pretty_link]"

Collapse
Posted by Gustaf Neumann on
to obtain from an arbitrary page the fully qualified URL, one can use... [$page pretty_link -absolute true]