Skip to content

TopLevel displayPage.php

James Cobban edited this page Dec 12, 2019 · 4 revisions

Up: Top Level Implementation

Source Code

This script displays a page of static information. For example it is used to display the documents contained in the /Articles directory. It displays the contents of the <body> section of the template document inside the standard site presentation as defined by the page templates.

If the static document contains hyper-links to information about people in the family tree then holding the mouse over one of those links, or touching them on a touch-sensitive device, displays a pop-up containing information about that person.

When invoked by method='get' the parameters are:

parameter description
'template' this identifies the HTML file whose <body> section contains the static information that is to be presented to the user. If the value starts with a slash '/' then this explicitly identifies a template file within the site hierarchy. Otherwise it is within the /templates/ directory. The filetype .html is optional and is normally omitted.
'lang' the language selection

Note that although there are no links within the site that take you to the actual template files that there is nothing to prevent a user from manually entering the URL of one of these template files. However it is not useful to bypass the use of displayPage.php because that causes important features, such as the main menu button, to be missing. Bypassing displayPage.php is discouraged, for example, by the site interpreting a request to view the contents of a directory that contains static template documents, for example /Articles or /templates, by redirecting to a page which invokes either displayPage.php or ViewTemplate.php for each of the templates.

Next: DomainsEdit.js

Clone this wiki locally