mh css2switch


mh css2switch allows to link different stylesheets (css files) to any published menu item. This allows you to give each page of your website a different look. The connection between a stylesheet and a menu item may be handled down automatically to all included subitems.

You may also connect different stylesheets to each existing menu (menuname).

The mh css2switch package contains a component for administration and configuration, and also a required system plugin.

Version Differences Basic and Enterprise Edition

The free Basic Edition limits the allocation of individual CSS files on the first two menu levels. The Enterprise Edition supports the attribution to an unlimited number of menu levels.

The commercial Enterprise Edition supports the allocation of an additional CSS file on each menu level. In this way differentiated design spaces can be created with little effort.

The Enterprise Edition can load different CSS files for guests or for logged in users. This distinction does not offer the Basic Edition. The Enterprise Edition uses the configurable inheritance rules automatically to newly created menu elements. In Newly created menu elements must be once loaded and stored manually in the Basic components backend, until
inheritance rules be applied to them.

Upon completion of an annual membership fee all versions of our commercial Joomla extensions can be downloaded from our web site during the period of one year.


Install the package with Joomla!’s integrated installer. The css2switch package contains the component and the required system plugin, which will be automatically published after installation. css2switch generates strict XHTML 1.0 output. Please make sure, that you install the fitting version of css2switch to your current Joomla! application.


Uninstalling the component with the Joomla! installer will remove all files and folders. Database tables and entries have to be manually removed.


Install newer versions with the Joomla! installer. It’s not necessary to remove the older version before installing. Your former configuration settings will keep alive.


Preparing ccs files

css2switch automatically detects all css files located in the css folder of the active site template, which includes the prefix "template_" in their filenames (e.g. template_something.css).

Each HTML element you wish to format with individual css styles must be defined in a css file, which has to be connected with the target menu item by using css2switch. List only the element attributes, that should be changed.

Style elements and attributes, defined in the default css file, will be overwritten by styles that are linked and loaded into your site template by css2switch.

To configure the component open the Joomla! administration backend and go to components/css2switch.

  1. In the tab „Menuitems” you may link individual stylesheets to any menu item.
  2. In the tab „Menutype” you may link individual stylesheets to any menu.
  3. The tab „Information“ contains some help.
  4. At the end don’t forget to save your settings.
  5. The help icon is linked to the current demo and documentation website of the component scc2switch.
  6. The first columns display some information related to the menu item.
  7. In the dropdown box „css-file for guests“ select the css file you wish to connect to the menu item.
  8. With the next dropdown box you can connect different css files for registered site visitors. This feature is deactivated in the basic edition.
  9. Checking the box "include childelements" will assign the css file of the parent menu item to all included child items. If you create new submenu items, you have to open and save the css2switch configuration panel once again. The enterprise edition does connect automatically new sub items to the parent settings.

Licence Basic and Enterprise

© 2008 - 2011 mediahof. All legal rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You find the original GNU General Public License at

User Agreement Enterprise

© 2010 - 2011 mediahof

The SOFTWARE is owned by mediahof and/or its licensors and is protected by copyright laws and international treaties. You may not remove the copyright notice from any copy of the SOFTWARE.

See all details of our End User License Agreement at:

Example livesites

The following example websites are using css2switch:


It’s our company policy not to reply to emails containing support questions or suggestions. Please post any suggestions, questions or problems to our support forum at

Kiel, July, 20th 2011

Werftstraße 193
24143 Kiel, Germany

Programming: Dominik Gorczyca
Project management: John D. Zatkos