Template Fragments - different layouts for modules & comp.

Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Mon Dec 17, 2007 10:57 pm

Template Fragments - different layouts for modules & comp.

Post by VanCrey » Sun Feb 24, 2008 4:49 pm

1. Introduction

One template comes usally with one single layout, but what happens if I want to assign a specific layout for one single module or component and for other elements different layouts?

2. Situation

Its possible to assign a class-prefix, but this could be not sufficent enought for every situation and it could be very hard to manage it, if the webpage is using serveral different layouts. The relation between the "prefix" value in the module config to the template is missing!

3. Solutions

One template can contain a set of template fragment like "box", "highlightedbox", "warningbox", "newsbox", "menubox" and many more.

There is always a "default" template, which represents the current Joomla handling and is provided by the Joomla Framework.

The assignment of layouts to components and modules can be done over the Template Administration. This ensures, that each template allows there own configuration.

It`s should be also possible to define the template fragment explicit by using a parameter "subTemplate=xxx"

4. Result

The template issues are more centralized and not spreaded outside of the Template Administration. The template designer as more powerful options to take influence to the output

User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3788
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany

Re: Template Fragments - different layouts for modules & comp.

Post by Hackwar » Sun Mar 23, 2008 9:09 pm

This is already possible with the module chromes. :) Moving to denied.
god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.


Return to “Not Accepted - Archived”