PDA

View Full Version : Container template issues


Code Monkey
06-21-2007, 11:34 PM
I want to add my style graphics to the tables. However, my center column and side column graphics are different. In vBadvanced you can accomplish this in the template by checking if it's column 1 or not. How can I do the same in GAZ?

The Geek
06-22-2007, 06:46 AM
Thats a great suggestion that I hadn't even thought about. By default, there isnt a straight forward way of doing this, but this is what I have done for the next release so you could actually impliment it now.

Edit the geek/gaz/includes/gaz_class_core.php file to do the following:

replace

if ($stage == 'display')
{
$stylevar =& $this->stylevar;
$stylecss =& $this->stylecss;
}


with

if ($stage == 'display')
{
global $sectionid;
$stylevar =& $this->stylevar;
$stylecss =& $this->stylecss;
}


$sectionid refers to the 'section' that the module is in:

for HTML layouts:
1 = Top
2 = Left column
3 = Centre column
4 = Right column
5 = Bottom

For text layouts:
1 = centre column

HTHs!

Code Monkey
06-22-2007, 03:20 PM
I'll do that before the next issue, thanks. Big event tonight so I went ahead and did it all the hard way. :D