In your template you're calling the MySocialClass() function from within the Children loop. At that point you are already within the context of the TeamPlayer page, so the function in the TeamHolder_Controller will not be called unless you add Top to it, like this:
<% if $Top.MySocialClass %>
But far easier to ask the TeamPlayer page directly, as you're inthat context. So if MySocialClass is already datafield in TeamPlayer, you can just:
<% if $MySocialClass %>
(Skip the parenthesis)
Posted to: Checking variables of a chlid | Show Thread | Post Reply