It's specific purpose is to enable you to switch parts of a template on/off per page, independently of the presence of other modules and/or other module-positions.
I needed a way show specific HTML/script-parts only on 1 or 2 pages of my website and sure did NOT want to have to deal with article/category/section-ids manually, so i wrote this tiny switch-module
that allows me as well as any other admin to
publish / unpublish that specific parts of my template per page and do so comfortably via Joomla!-backend. The usage is very simple:
<?php if($this->countModules('myIndependentPosition')) : ?>
my very content ( HTML, PHP, JS, Meta-tag, IMG or whatsoever ) goes here ... and will later only be expressed on the page if the simpleSwitch module is 'shown' on that page
<?php endif; ?>
You use it just like any other module: You can show it only on specific pages of your website, or on all pages or on none.
This can be defined the usual way in the module-manager → module "simpleSwitch"
Since the switch is realized as a module, you
can create an own position for the module in your template if u want, so your free to use it wherever you want in your template, even for instance in the header ( i.g. if you want to controll the inbind of a .css or .js - file or so )
Tip: You can clone the switch via the "copy" function in the modul-manager in case you need several switches in your template !
Enjoy :D