API results for “template”

26 to 50 of 145

$templates->delete($item) apivar.method
Delete a Template

$templates->clone($item, string $name = '') apivar.method
Clone the given Template

$templates->rename(Template $template, string $name) apivar.method
Rename given template (and its fieldgroup, and file, when possible)

$templates->getNumPages(Template $tpl) apivar.method
Return the number of pages using the provided Template

$templates->getExportData(Template $template) apivar.method
Export Template data for external use

$templates->setImportData(Template $template, array $data) apivar.method
Given an array of Template export data, import it to the given Template

$templates->getParentPage(Template $template, bool $checkAccess = false, $getAll = false) apivar.method
Return the parent page that this template assumes new pages are added to

$templates->getParentPages(Template $template, bool $checkAccess = false, int $maxStatus = 0) apivar.method
Return all possible parent pages for the given template, if predefined

$templates->getPageClass(Template $template, bool $withNamespace = true) apivar.method
Get class name to use for pages using given Template

$templates->getTags(bool $getTemplateNames = false) apivar.method
Get all tags used by templates

$templates->fileModified(Template $template) apivar.method
Hook called when a Template detects that its file has changed

$pages->add($template, $parent, string $name = '', array $values = []) apivar.method
Add a new page using the given template and parent

$pages->templateChanged(Page $page) apivar.method
Hook called when a page's template has been changed

Process::installPage(string $name = '', $parent = null, string $title = '', $template = 'admin', array $extras = []) apivar.method
Install a dedicated page for this Process module and assign it this Process

$page->template($template = null) apivar.method
Get or set template

$page->renderField(string $fieldName, string $file = '', $value = null) apivar.method
Render given $fieldName using site/templates/fields/ markup file

$page->renderValue(mixed $value, string $file = '') apivar.method
Render given $value using /site/templates/fields/ markup file

$page->is($status) apivar.method
Does this page have the specified status number or template name?

$page->getAccessTemplate(string $type = 'view') apivar.method
Returns the template from which role/access settings are inherited from

viewable($field = '', $checkTemplateFile = true) apivar.method
Returns true if the page (and optionally field) is viewable by the current user, false if not.

templates($name = '') class.method
Access the $templates API variable as a function.

$page->template($template = null) class.method
Get or set template

$page->renderField(string $fieldName, string $file = '', $value = null) class.method
Render given $fieldName using site/templates/fields/ markup file

$page->renderValue(mixed $value, string $file = '') class.method
Render given $value using /site/templates/fields/ markup file

$page->is($status) class.method
Does this page have the specified status number or template name?