Gantry provides full RTL (right-to-left) support allowing the ability to develop sites that use languages such as Hebrew, Arabic or Farsi. Find out more...

Using Force Positions

There are times when you just don't want to have your modules taking up all the room in a horizontal row -- no matter what the layout. For example, you might want to have a module on the left and a module on the right, with nothing in the middle. In traditional Joomla templates, you would have to resort to making two specific module positions, and using CSS, position them on the left and right sides of your design.

Forcing the module positions is a powerful layout control. This short screencast provides some insight in how to achieve this and also the layout control that can be attained using this technique.

With Gantry, you can use the layouts settings to achieve this goal with no code or special CSS. First in the layouts settings, for the Utility Positions, set the Force Positions to On and the Position Count to 4.

This means that there will always be four utility module positions (utility-a, utility-b, utility-c, utility-d) displayed, no matter how many modules you actually have published in the module manager. Then, all you need to do is publish a module in the utility-a position to show on the left, and a module in utility-d to show on the right. Just ensure you have nothing published in utility-b and utility-c, and those will just be left as blank spaces.

Enter the Layouts section and toggle on the Force Positions for the module row you are utilizing.

The result will be:


Found errors? Think you can improve this documentation? Please edit this page. You can also view the history of this page.