Common Objects

Simple Usage

Many times the same objects will need to be used on pages or components powered by OTL. These objects typically contain information about the page itself, the current site or network, the page owner or logged in user, or the current group.

Smarty templates may make use of common objects. For instance, by adding a Smarty module to a user page your template will immediately have access to the profile object for that user. Thus, you can create highly customized templates for the page.


The $PAGE object contains many attributes about the current page request and also lets you interact with the page’s layout and other dynamic functionality.


$OWNER_PROFILE represents the User Profile object for the owner of the current page or group.


$VIEWER_PROFILE represents the Owner Profile object for currently logged in user.


$GROUP_PROFILE This represents the Group Profile object for the requested group page.