Forum OpenACS Development: xowiki serving subsites

Collapse
Posted by Malte Sussdorff on
What is the recommended way for XoWiki in subsites. I have a subsite "/extranet/ and an xowiki instance /extranet/xowiki. I added /www/extranet/index.vuh so the redirect works. Interestingly I had to do it like this:
regsub {/extranet/} [ns_conn url] {/extranet/xowiki/} new_url

::xowiki::Package initialize -ad_doc {

  This is the resolver for this package. It turns a request into
  an object and executes the object with the computed method

  @author Gustaf Neumann (gustaf.neumann@wu-wien.ac.at)
  @creation-date July, 2006
  @cvs-id $Id: index.vuh,v 1.5 2006/09/15 16:45:00 gustafn Exp $

} -parameter {
  {-m view}
  {-folder_id:integer 0}
}  -url $new_url
See the regsub at the beginning? I thought this would be taken care of by specifying /extranet/ as the prefix URL, but I guess I got totally confused as it did not work.

So if someone could quickly tell me how it is done properly that would be great.