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()
array elements([ int index [, string area [, string view ]]])
Return
List of content elements
Parameter
Description
indexBackend navigation index (0 = current page)
areaArea defined in backend's template section. If an area is passed, the method will return this area's content elements only.
viewOptional view as defined in backend. If a view is passed, the method will return ony content elements for which this view has been selected.
Get list of current page's content elements
$PAGE->elements()
RETURN: ARRAY [4]