Midgard uses pageelement records to override the style defined by style elements for a certain page, and optionally its children.
A page element record contains information about a page element, the page it belongs to, an its inheritance.
Fields of a page element record
The id of the page element.
The id of the page record the page element belongs to.
The name of the page element
The content of the page element.
Contains set('inherit'). If inherit is set, the page element will also be valid for subpages of the page record with id page.
The id of the sitegroup the page element belongs to.
This section describes the contents of pageelement objects. Most object parameters map directly to the record fields described above.
The functions listed within the object definition are the object methods that are available for the object. Usage information about those methods can be found in Object Methods.
/* Page element Object Prototype */ Class pageelement { var $N; # Only with mgd_list_XXX functions. var $id; var $page; var $name' var $value; var $info; var $sitegroup; function fetch(); # Only with mgd_list_XXX functions. function create(); function update(); function delete(); function createattachment(); function updateattachment(); function deleteattachment(); function getattachment(); function listattahcments(); function openattachment(); function serveattachement(); function listparameters(); function parameter(); function searchparameters(); function getsitegroup(); function setsitegroup(); }