GavickPro Documentation

Gavern Joomla template framework: Layout Manager Tutorial

With the 1.2 release of Gavern, we have completely redefined the way modules are managed within module positions in our templates. With this release, all layout features are included in one field: the Layout Manager.

Layout Manager allows users to accomplish the following:

Layout Manager is divided into two basic parts :

Layout switcher

The layout switcher permits users to preview changes to the site interface based upon the screen resolution when one of the available modes (desktop, tablet or mobile) is selected. It is also possible to set different width values for desktop and tablet modes. By default, all modules in mobile mode are set to 100% width. Please remember that this is only a sample preview and that the final template layout may be different in some respects. Users don’t need to save changes before changing mode; all settings will stick until a user either saves the template configuration or cancels it.

Module positions manager

In this area you can preview the template layout. Basically, blocks are divided into two groups:

Active blocks represent template module positions. In this area, users can add settings for particular modules.

  1. Advanced Settings/Import – here users can import configurations from different module positions
  2. Module position name
  3. Number of modules assigned to a module position
  4. Add modules
    1. Module width with “Add” button
    2. Advanced settings:
      1. Default module width – value to be set as the default width for every new module not included in Layout Manager. For example, when a user creates 3 modules inside a module position and for the front-end publishes 5 modules, the 4th and 5th modules will each get a span5 width value
      2. Use default module settings – with this option enabled, Layout Manager will not affect the selected module; instead, settings are applied from the module configuration

Sidebar is one of the module positions offering various options:

After adding a new module to a module position, the element is presented by a simple block:

Sample configuration

This part describes a sample module position configuration. For this example, we’ll select ‘top’ module and specify the following module layout in this position. For this tutorial we assume that we will have 6 modules in this area:

span 6 | span 6 span 12

span12 span 12 span 12 span 12 span 12 span 12

The first thing to do is to add the assumed value of modules to Layout Manager. To do this, choose the module in desktop mode, select the “Add” button and add modules with following widths – 6,3,3,6,6,12.

On sample preview the layout should be similar to what you need. Next we go to tablet mode, using the mode switcher at the top to make corrections for particular module blocks.

The first one is fine because in both tablet and desktop modes the module should have a value of span6. In the second module we increase the width from 3 to 6. For the third one we’ll increase from 3 to 4. Then the 4th should be decrease from 6 to 4. Similar process we repeat for other modules five and six. Now it is time to save template configuration.

After saving configuration the results should be visible at front-end, depends of screen resolution when the tablet or desktop version is loaded modules should be displayed similar to Layout Manager preview.

Desktop :

Tablet :

Gavern Joomla template framework: Layout Manager Tutorial 5.005 (100.00%) 1 vote