Page Templates
The
/pages
directory contains the templates that generate the HTML of a
Portal.In this section:
- What Is Freemarker?Titania Delivery utilizes a template engine called Freemarker to render a Portal's pages.
- Common Template VariablesTitania Delivery populates each Portal Theme page with variables containing several useful properties.
- Portal Theme PagesThe following pages are required for a basic Portal to function properly. All paths are relative to the Portal Theme root.
- Storing DataThe userData and siteData variables provide a mechanism for storing and retrieving persistent data on the server.
- Modifiable Lists and MapsNative Freemarker hashes and arrays are not designed to be modified. Titania provides a number of tools for working with modifiable lists and maps instead.
- Portal Theme JavaScript Utility LibraryThe utility library contains helpful tools for enhancing portal functionality using Javascript in your portal theme pages.
- Portal FeaturesPortals have a number of features available to them. These features can be enabled and disabled in the admin application. Within a Portal Theme, the presence or absence of these features can be checked for, and the corresponding functionality exposed or hidden.
- Translation SupportManaging site translation in Titania Delivery involves using FreeMarker definition files containing the translations, and a mechanism for finding the strings in the current language.
- Freemarker ExtensionsTitania Delivery provides a number of custom Freemarker directives and functions in addition to the main Tag Library.
- Template Variable TypesThe page templates in a Portal Theme are provided with various objects representing the content and metadata in the system.
- The Titania Tag LibraryTitania Delivery provides a custom tag library that allows for accessing powerful features of Titania Delivery and easier customization of Portal Themes.
Previous topic: Portal Theme Basics
Next topic: Static Assets
Parent topic: Portal Theme Developer's Guide