Got some problem and cannot find solution on forum and google with SS.
In Page Controller I've got function like:
function checkSomhing()
{
return true;
}
and I would like to use it in template:
<% if checkSomhing %>
test
<% end_if %>
All works well. But there is case that I need to use it inside another 'control' eg. displaing menu:
<% control MainMenu %>
...
<% if checkSomhing %>
test
<% end_if %>
<% end_control %>
And 'checkSomhing' doesn't work. I think I know why, because control loop is looking for 'checkSomhing' in $MainMenu object. It's clear. But I can not find solution to get it work. Need something like:
<% if this.checkSomhing %>
or some other solution to call controller function inside control loop.
Than you in advance.
Pawel