-PS: it makes sense to concentrate the discussion to one place, e.g. the<br>-OpenACS forums.<br><br>Sorry, Gustaf, I thought this was a language specific question better suited for here. My mistake. I will keep future posts in the forum. Thank you for the help.<br>
<br><div class="gmail_quote">On Fri, May 16, 2008 at 11:06 AM, Gustaf Neumann <<a href="mailto:neumann@wu-wien.ac.at">neumann@wu-wien.ac.at</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Matthew,<br>
<br>
the question is more of an OpenACS question than an XOTcl question.<br>
<br>
however, some answers:<br>
- i was the "someone" who wrote a sample script for you.<div class="Ih2E3d"><br>
<br>
> in the lines:<br>
> ::xo::cc set_parameter master 0<br>
> ::xo::cc set_parameter content-type $content_type<br>
> what does the "::xo::cc" mean?<br>
<br></div>
- ::xo::cc is an the connection context object created by xotcl-core.<br>
- The connection context object contains per request information<br>
- The conneciton context ist used as well by the "view" method of<br>
XoWiki pages to control, whether or not the output should be<br>
included in a master adp file (with login etc or not). You will<br>
not like to have this around e.g. a json code.<div class="Ih2E3d"><br>
> If the object is being created, how do I reference the object? <br></div>
i have to assume, that by "object" you refer to an instance of the<br>
class ::xowiki::Object. If you load the prototype page - as described<br>
in my answer in the openacs forum - then an acs_object is<br>
created in the openacs content repository. The entries in the<br>
OpenACS content repository are referenced by name.<br>
When you call e.g. http://..../xowiki/PAGEAME, an<br>
::xowiki::Object with the name PAGENAME residing<br>
in the content folder for the xowiki-instance will be fetched<br>
from the content repository, on this object, the method view<br>
is called, and the ouput is presented to the user.<div class="Ih2E3d"><br>
<br>
<br>
> For instance, I would like to set a<br>
> variable to "content". How would I do this?<br>
<br></div>
>From your other positing in the OpenACS forum i see<br>
that you want to include the page in some other adp page<br>
<br>
you can do this<br>
<include src="/packages/xowiki/lib/view" url="@url@" template_file="view-links"><br>
<br>
The variable "url" should point to the xowiki page to be included (e.g. /xowiki/my_page). <br>
best regards<br><font color="#888888">
-gustaf neumann<br>
</font><br>
PS: it makes sense to concentrate the discussion to one place, e.g. the<br>
OpenACS forums.<br>
<br>
<br>
</blockquote></div><br>