PAGE Methods

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'