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()
topic()
Reads the topic entry from the backend's domain settings. Use title() to make the topic part of the page's title (see examples below for details).
string topic()
Return
Domain topic setting
Read domain topic
$PAGE->topic()
RETURN: 'Developer's Guide'
Use topic in page's title
$PAGE->title($PAGE->topic() .(($title = $PAGE->title())? ' // ' .$title: ''))
RETURN: 'Developer's Guide'