PAGE Methods
Including templates and objects
content(), module(), object()Request content via AJAX
collect(), complete(), elements(), element()Insert code (CSS, JS, HTML)
style(), script(), meta(), bottom(), tracking()Template data
directory(), views(), details(), preview(), charset(), language(), error()Reading and writing META data
title(), topic(), descr(), claim(), robots(), keywords()HTTP header
mime(), status(), expires(), header(), download()
content()
Returns include-filename for content templates. In order to include content, first you need to create an AREA in the backend's template section. Then select this area for all page- and content-templates that contain this area. Please see the template section for further information on how to set up templates.
string content( string area [, string view ])
Return
Name of a system-file which will include your content-templates for this area.
Parameter
Description
areaArea defined in backend's template section.
viewOptional view as defined in backend. If a view is passed the method will only inlude content-templates for which this view has been selected.
Include content of MARGIN area
1include $PAGE->content("margin")
RETURN: '/var/.../.../system/sys_page_content.php'
Include content of BOTTOM area for which the "black" view has been selected
1include $PAGE->content("bottom", "black")
RETURN: '/var/.../.../system/sys_page_content.php'