CustomCondition in Community Server

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.

↓ Add Comment
↓ Add Comment

Comments (0)