API results for “template”
Template::save() class.method
Save the template to database
Template::filename(string $filename = null) class.method
Return corresponding template filename including path, or set template filename
Template::filenameExists() class.method
Does the template filename exist?
Template::parentTemplates($setValue = null) class.method
Get or set parent templates (templates allowed for parent pages of pages using this template)
Template::childTemplates($setValue = null) class.method
Get or set child templates (templates allowed for children of pages using this template)
Template::allowNewPages() class.method
Allow new pages that use this template?
Template::getParentPage(bool $checkAccess = false) class.method
Return the parent page that this template assumes new pages are added to
Template::getParentPages(bool $checkAccess = false) class.method
Return all defined parent pages for this template
Template::getLabel($language = null) class.method
Return template label for current language, or specified language if provided
Template::getTabLabel(string $tab, $language = null) class.method
Return page tab label for current language (or specified language if provided)
Template::getNameLabel($language = null) class.method
Return the overriden "page name" label, or blank if not overridden
Template::getIcon(bool $prefix = false) class.method
Return the icon name used by this template
Template::getLanguages() class.method
Get languages allowed for this template or null if language support not active.
Template::getPageClass(bool $withNamespace = true) class.method
Get class name to use for Page objects using this template
Template::getTags() class.method
Get tags array
Template::hasTag(string $tag) class.method
Does this template have given tag?
Template::addTag(string $tag) class.method
Add tag
Template::removeTag(string $tag) class.method
Remove tag
Template::setIcon(string $icon) class.method
Set the icon to use with this template
Template::editUrl(bool $http = false) class.method
URL to edit template settings (for administrator)
PagesType::__construct(ProcessWire $wire, $templates = [], $parents = []) class.method
Construct this PagesType manager for the given parent and template
PagesType::addTemplates($templates) class.method
Add one or more templates that this PagesType represents
PagesType::getTemplate() class.method
Get the template used by this type (or first template if there are multiple)
PagesType::getTemplates() class.method
Get the templates (plural) used by this type
InputfieldToggle::getConfigAllowContext(Field $field) module.method
Return a list of config property names allowed for fieldgroup/template context