Setting up types
About setting up new file and folder types in WebHare.
If you want to build a file or folder type that is basically a 'one off', eg. you're just going to create one of it and don't expect the end user to set it up (such as a login or search page), consider setting up a prebuilt page
Prebuilt pages simplify the construction of one-off pages that would usually require setting up a separate filetype. A prebuilt page can be HTML or SHTML.
To setup a prebuilt page, define it in your siteprofile in the same `<apply>` block where you apply the global webdesign:
Instead of an explicit title, you can also set a tid.
The tag you use is not automatically namespaced to a site or module, so you'll need to ensure that the tag you use is sufficiently unique if the siteprofile applies to more than one site.
The object itself should derive from StaticPageBase or DynamicPageBase as applicable. As an example:
GetPageBody is invoked after the webdesign has set up pageconfig, and the returned value is used as the page's contents.
In WebHare versions before 4.09, you would separate update the PrepareForRending and RunBody functions.
Create a file of type 'Prebuilt page' aka `http://www.webhare.net/xmlns/publisher/prebuiltpage` - you will probably need to enable 'Show all installed types' in the 'New File' dialog to see the prebuilt page.
Modify its properties and select the proper prebuilt page on the first tab. If your prebuilt type isn't visible, try a siteprofile recompilation (or `wh softreset --sp`). If it's still not visible, use the Inspect feature to see if the apply rule containing your `<prebuiltpage>` is actually being applied.
Applying settings to a prebuilt file
You can apply settings to a specific prebuilt file, eg:
`prebuiltmasks` is a space-separated list of wildcard masks which tests against the prebuiltpage tag.