Home
The Toolkit for Online Communities
15892 Community Members, 0 members online, 2103 visitors today
Log In Register

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

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

Icon of Envelope Request notifications

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

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

:-)

+
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.
+
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]"

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