1 The /pages
Directory Structure
/pages
directory contains the templates that are used to
render the Portal. Some templates are complete pages while many others are smaller
modules meant
to be included into a page.The /pages
directory contains the following:
/
|
The root directory contains most of the minimum required pages for the Portal to work properly. |
components/
|
The components/ sub-directory contains templates that are
reused among several pages or are used as module on a single page. These components
are meant to be "stand-alone", though they may not work properly unless certain other
script files or macros are declared in the <head> of the
containing template. These components can be included on any page by adding
<#include "path/to/component.ftl" /> . |
custom/
|
The custom/ sub-directory contains full-page templates that
can be used to extend the functionality of a Portal by adding new pages. |
errors/
|
The errors/ sub-directory contains the required 404 and 500 error pages. |
header/
|
The header/ sub-directory contains templates that can be
inserted into the <head> of any page. Usually these are
convenience templates that group related CSS and JavaScript files together for easy
inclusion in other pages. |