By default the fe_page.tpl adds $this->class to body class="
I want to set special class to body if it's site root.
For example, if user on the index.html body has an "index" in class attribute, else it has nothing.
By default the fe_page.tpl adds $this->class to body class="
I want to set special class to body if it's site root.
For example, if user on the index.html body has an "index" in class attribute, else it has nothing.
You can use global $objPage to check the alias or id I think.
global $objPage;
if($objPage->alias == whatever)will show you the Page object vars availableCode:global $objPage; print_r($objPage);
Hmm..I thought that there is some predefined function or property in $this object in the template, isn't it?
will show you what is passed.Code:print_r($this);
Ok, thanks. I've already done the task with GLOBAL as you shown.Originally Posted by ramjet
Bookmarks