Ad Hoc Text
On most websites, there is often a need for simple pages of information. These are not really content pages, since they are mostly to do with the operation of the site, and not its informational purpose. For example, these sorts of things:
- terms of service
- help pages
- contact information
- notification of upcoming events
To support these uses, Siteframe 5.x provides "Ad Hoc Text" objects. These are simply editable pages that can be created and maintained by a site administrator via the administrative interface.
For example, this site has an "About" page as well as "Credits." Neither of these are really site content; they don't need to appear in a folder or be accessible through the archives, but they obviously serve an important purpose.
To create a new ad hoc page:
- from the admin control panel, select "List ad hoc page"
- at the bottom of the page, click "New Ad Hoc Page"
- give the page a name, a title, and some text. The "name" is the short tag; for example, on the About page, the name of the page is "about" (and is used in the URL http://siteframe.info/adhoc/about) but the page title is "About Beaumont."
To create a link to an ad hoc page, you can just manually enter it's URL, or use the {text_link} extension function:
{text_link name="about"}
This is useful if your ad hoc page might be used on different websites; the {text_link} function will generate different URLs based on whether the site is configured to use URL rewriting or not.
