There are occasions when you want to create Wiki pages on the fly based on external data sources for example when using a database. OpenForum enables you to do this by allowing certain urls to redirect to a single page where dynamic pages can be generated using server side javascript.
Dynamic pages are defined on the page /OpenForum/DynamicPages as a regular expression followed by a page to redirect to separated by an =. For example:
.*/OpenForum/DynamicPages/TestPage/Test/.*=/OpenForum/DynamicPages/TestPage
. Each redirect is placed on it's own line. All the redirects on the page are wrapped in a code example markup so that the wiki does not convert special wiki characters that may be in the list.
This is the example included in the basic OpenForum install. All pages matching the regular expression .*/OpenForum/DynamicPages/TestPage/Test/.* are sent to the page /OpenForum/DynamicPages/TestPage. So a link to /OpenForum/DynamicPages/TestPage/Test/APageShowingTheCurrentStateOfSomething will be directed to /OpenForum/DynamicPages/TestPage. This page has some server side javascript in a file get.sjs that is used to display the requested URL.by Admin on 21/04/2008 at 10:09 PM |
|