About Template Has Tags

Simple Module that provides a method for checking if the current template has got (or has not got) one or more specific template tags.

Category Other Modules
Modules that have a unique purpose not covered by existing categories.
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Module Version1.0.0
Class NameTemplateHasTags
Compatibility2.0, 2.1, 2.2, 2.3, 2.4
Date AddedMay 20, 2013
Recommended ByNew recommendations may take up to 1 day to appear.


Install as usual.


Return true if the currently used template:

// has the tag "detail" but not "special" $page->hasTags("detail !special"); // does not have the tag "listview" $page->hasTags("!listview"); // you can also use: $page->hasTag("lorem ipsum");