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.*
Authormichamichamicha
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.

Instructions

Install as usual.

Usage:

Return true if the currently used template:

Code:
// 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");

README

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.