Online Programme Static Content Data Functions¶
Each page built in the online programme contains content created by combining the page template with JSON data representing the object being displayed on the page. (See Publish Process).
It is also possible to add Static Content that is the same for every single page in the online programme. There are three different types of static content currently available.
These can be added in by using the appropriate Function and Output data tags.
Data Function | Description |
---|---|
Header | Display the same header on each page in the online programme. The contents can be edited by editing the Project PageHeader template. |
Footer | Display the same footer on each page in the online programme. The contents can be edited by editing the Project PageFooter template. |
Menu | Display the main menu on each page in the online programme. The contents can be edited by editing the Project PageMenu template. |
Note
There is only one template per project for each of these data functions.
Examples¶
<div data-function='Header' data-context='Project' data-output='PageHeader'> </div>
Pull in the header static content
<div data-function='Menu' data-context='Project' data-output='PageMenu'> </div>
Pull in the menu static content
<div data-function='Footer' data-context='Project' data-output='PageFooter'> </div>
Pull in the footer static content
Removing Static Content¶
By default, each type of static content is added to every page template.
The static content can be removed by either:
- Removing the data function from the page template.
- Editing the static content page template and removing all html from it.
The static content can be empty or the html with the data function can be removed from the page template.