10379 Posts in 2194 Topics by 1710 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 522 Views |
-
subsite specific template methods

11 January 2011 at 7:46am
I'm just wondering if there are any methods in subsite accessible from the template. I'd like to show slightly different information in my page footer on my subsites than my main site. So an <% if Subsite %> type methods would be ideal
Thanks
-
Re: subsite specific template methods

12 January 2011 at 5:33am
I have added add a Method to my Page_Controller as follows:
public function IsOnSubsite(){
return is_object(Subsite::currentSubsite())?1:0;
}Some of the Subsite variables/methods you can also access with $Subsite.currentSubsiteID, but I don't know which and how reliable they are.
| 522 Views | ||
|
Page:
1
|
Go to Top |


