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()
collect()
Creates URL that allows you to fetch data via ajax. The ajax collection of data has to be enabled in the backend's setup section for this method to work. Please see our AJAX example for details.
string collect( int index [, string area [, string view ]])
Return
URL to be used in connection with ajax
Parameter
Description
indexBackend's navigation index
areaPass this parameter if you want to get the content of a specific area only. Areas are defined in the backend's template section.
viewGet only content of those elements that have been assigned this view. Views are defined in the backend's template section and are assigned to a content-element in the navigation's content section.
Request AREA named "content"
$PAGE->collect(183, "content")
RETURN: '?collect=183&area=content'
Get AREA named "content" for which the VIEW named "attention" has been selected
$PAGE->collect(183, "content", "attention")
RETURN: '?collect=183&area=content&view=attention'