Forum OpenACS Development: Re: s5 meets XoWiki

Collapse
4: Re: s5 meets XoWiki (response to 1)
Posted by Dave Bauer on
In case anyone is interested you can redirect to another package like this:

Survey Library is a package that reuses most of the admin pages from survey-builder-ui (which in turn reuses the survey package data model, but provides a new UI)

http://cvs.openacs.org/cvs/openacs-4/packages/survey-library/www/index.vuh?rev=1.2&view=markup

#
#
# Serve up survey package pages under survey-library to add and edit items
#
# @author Dave Bauer (mailto:dave@thedesignexperience.org)
# @creation-date 2004-09-19
# @arch-tag: 35a5ad30-8b91-4a5b-b2a5-90257366bf4e
# @cvs-id $Id: index.vuh,v 1.2 2005/01/13 13:58:48 jeffd Exp $

set page [ad_conn path_info]
rp_internal_redirect /packages/survey-builder-ui/www/admin/${page}

It's also possible to restrict which pages can be redirected, just put a list of pages and check the URL against the list.