CustomCondition in Community Server
Posted by Anders Vindberg
in Lunarmedia Blog
on the 19 Feb. 2009 (50,680 views).
Often I find situations where I need to do a customized condition comparision. To enable this, Telligent have added the following chameleon control:
<CSControl:CustomCondition runat="server" CustomResult='<%# ((CommunityServer.Discussions.Components.Forum) ForumControlUtility.Instance().GetCurrentForum(Container)).SectionID == ForumControlUtility.Instance().GetCurrentThread(this.Page).SectionID %>'
/>
In this example I check the sectionId of the current forum (eg. in a dropdown list populated with all the forums) and the forum in which the thread im viewing is in.