Gavick TabMods

Special edition for The Corporation template !

Table of contents

Gavick TabMods

Module possibilites

Gavick TabMods is a module which shows modules in tabs. You can decide which modules will be show in each tab.

Module configuration

In administration panel you can set options of news projection.

Basic configuration

In this group you can set basic module parameters - class suffix, width and height of module. Module Class Suffix is a string which will be added to class name in main div:

<div class="moduletable">

If you change this option for "tabs":

<div class="moduletabletabs">

We recommend suffix with dash, so option will be set as "-tabs":

<div class="moduletable-tabs">

Then code is more readable.

Height and width options are usable in the moment when you need specify dimensions of module block. If you set width as 0 then this dimension will be set automaticaly. If you want set module width as 300 pixels then write - 300px. Suffix "px" is very important. Without it width will be set automaticaly. Height of module always should be set in pixels !

Content configiration

In this group of options you can set titles for tabs and names of blocks with modules which will be show in each tab.

In option Tabs titles you can set titles for tabs - you should separated its by "|" char. For example - if you need to have three tabs named "Tab one", "Tab two", "Tab three" then in this option write:

Tab one|Tab two|Tab three

In option Tabs modules we have this same situation as previous option - all names of blocks with modules should be separated by "|" char. So if you want to in tabs load blocks user1, user2, user3 then write in this option:

user1|user2|user3

Two important information - you should set in this option name of modules positions, not modules names. And you must know that you cann't set module TabMods in position which is loaded by this module. For example - if module load blocks user1, user2, user3 you can set position of module as user4, user5 etc. but you cann't set position as user1, user2 and user3 because it will create infinite loop.

Animation configuration

In this group you can set Type of activation option. You can choose between two events - onClick and onMouseOver. If you set this option as onClick then user must click on tab to see tab content. If you set this option as onMouseOver then user must only set cursor over tab to see content of tab...

You can also turn on animation. If you set option autoAnimation as enabled then animation will be turn on to time when user activate one of tabs through specified in option Type of activation event - then animation will be turn off. Of course in option Animation speed you can set speed for animation in miliseconds (ms).

Two last options are need to use with some templates and copies of module TabMods. Option Use MooTools is need when you has template with included MooTools 1.1(1) - then you can disabled this option. Also in situation when you have two or more modules TabMods on one page then you should set this option as enabled only in module which is first in the page structure. In second, third etc. modules you can disabled this option.

Option Use script is need when you have two or more modules TabMods on one page - then enable this option ONLY in first module and disable in rest of copies of this module. Script for module is prepared to work with some instances of TabMods module and should be run only once time...