Show Element Only When Poll is Available

rated by 0 users
This post has 1 Reply | 1 Follower

Top 500 Contributor
Posts 62
Points 760
drq Posted: Wed, May 7 2008 2:20 PM

 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>

 

 

  • | Post Points: 5
Top 500 Contributor
Posts 62
Points 760
drq replied on Wed, May 7 2008 2:28 PM

Silly me.  I forgot the operator.

<

CSForum:ForumPostPropertyValueComparison ID="PostPropertyValueComparison1" ComparisonProperty="HasPoll" ComparisonValue="True" Operator="EqualTo" runat="server" />

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com