I have a folder called "clientcases" that includes 4 or five client cases. In the template I list the other clientcases in the sidebar (with a <% control ChildrenOf(clientcases) %> loop ). Now I want to exclude the current case from the list in the sidebar. Normally I'd just assign a temporary CurrentClientCase variable to match against the Title in the loop. But how do I assign a temporary variable like that in SS?
When viewing the "Foo" page, only Bar, Alice and Bob should be listed in the sidebar.
So something like this should do it:
<% control ChildrenOf(clientcases) %>
<% if Title != CurrentClientCase %>
<% end_if %>
<% end_control %>
But how do I assign the $Title value to $CurrentClientCase (or another temp variable...)?