PAGE Methods

elements()

Get a list of a page's content-elements. Use element() to display these content elements. To include content inside a page-template use the content() method.

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]