Welcome Guest, Not a member yet? Register   Sign In
Template Library question
#1

[eluser]pehaw[/eluser]
I'm using Colin's Template Library (great stuff btw)...

I have the following default template with these regions defined. This works fine for me.
Code:
$template['default']['regions'] = array(
  'title',
  'header',
  'menu',
  'left',
  'main',
  'footer',
);

In one controller function, I want main to be laid out using css xxx.

In another controller function, I want main to be laid out using css yyy.

What's your thoughts on how to achieve this. Is it ok to just define another region defining the css content for this div and set it accordingly, or is there some other way of doing this?

thanks in advance
#2

[eluser]Milos Dakic[/eluser]
You could just set a CSS region and alternate between two templates. Or if its not too much work just change the region in the constructor of the controllers that are needed.




Theme © iAndrew 2016 - Forum software by © MyBB