I'm trying to show a link underneath every poll in a forum post. I can determine if the post contains a poll using
<CSControl:PostData ID="PostData2" runat="server" Property="HasPoll">
This displays "True" for the correct things.
But when I try to use CSControl:PostPropertyValueComparison or CSForum:ForumPostPropertyValueComparison control in a DisplayConditions it doesn't work. What's up? How can I do this?
This doesn't work:
<CSControl:SiteUrl ID="SiteUrl1" runat="server" UrlName="PollReport_AllUsers" Text="View the Full Poll Report Containing All Foley Personnel" > <DisplayConditions runat="server"> <CSForum:ForumPostPropertyValueComparison ID="PostPropertyValueComparison1" ComparisonProperty="HasPoll" ComparisonValue="True" runat="server" /> </DisplayConditions> <Parameter1Template> <CSControl:PostData ID="PostData1" runat="server" Property="PostId" /> </Parameter1Template> <Parameter2Template> <CSControl:PostData ID="PostData1" runat="server" Property="ApplicationType" /> </Parameter2Template> <LeaderTemplate> <div style="padding:15px 30px;background-color:#E5E5E5;border:1px solid #333;margin:20px auto;"> <span style="margin:5px auto;display:block;text-align:center;font-size:13px; font-weight:bold;"> </LeaderTemplate> <TrailerTemplate> </span> </div> </TrailerTemplate> </CSControl:SiteUrl>
Silly me. I forgot the operator.
<
CSForum:ForumPostPropertyValueComparison ID="PostPropertyValueComparison1" ComparisonProperty="HasPoll" ComparisonValue="True" Operator="EqualTo" runat="server" />
Copyright© 2008 Telligent Systems Inc. All rights reserved CommunityServer.com • Telligent.com