Page 1 of 1

beezHide style and state in beez_20 template

Posted: Mon Dec 24, 2012 3:42 am
by mnhuda
Hi,
I am using beez_20 template. In the index.php file, Position-4 uses

<jdoc:include type="modules" name="position-4" style="beezHide" headerLevel="3" state="0 " />

What I understood that [style="beezHide" and state="0 "] should keep a module collapsed. However, it is not working in my site.

Any suggestion from experts!!

Thanks
Nurul

Re: beezHide style and state in beez_20 template

Posted: Tue Dec 25, 2012 1:59 pm
by jtut
state="0 " => Collapse, state="1 " => Expand
Please clear your web browser's cache to applying the changes.

Re: beezHide style and state in beez_20 template

Posted: Wed Dec 26, 2012 4:52 am
by mnhuda
Hi jtut,
Thanks for the reply. I knew that state="0 " => Collapse, state="1 " => Expand. However, it didn't work in my site. I figured out what was causing the problem.

When I removes "Font size |Bigger|Reset|Smaller" from the index.php by removing [<div id="fontsize"></div>], the side effect was "state=0" was not working.

After some experiments, finally I could make it work by removing following line instead of removing [<div id="fontsize"></div>],

$doc->addScript($this->baseurl.'/templates/'.$this->template.'/javascript/md_stylechanger.js', 'text/javascript');


Thanks .
Nurul