Hey,
I need a way to test to see if a date has been set in a standard field
using render tags. I've tried testing based on length and on elements
that are empty, it still returns the same results. The test is
determining if a manual date has been entered otherwise it will
default to a system date based on the last release time.
Here's the code that I'm working with:
<reddot:cms>
<if>
<query valuea="Context:CurrentPage.Elements.GetElement(<
%stf_Article_RSS_Date%>).Value.Length" operator="==" valueb="29">
<htmltext>
<pubDate><%stf_Article_RSS_Date%></pubDate>
</htmltext>
</query>
<query type="else">
<htmltext>
<pubDate><%info_itemdate%> </pubDate>
</htmltext>
</query>
</if>
</reddot:cms>
Right now, that test will always fail resulting in <%info_itemdate%>
rather than <%stf_Article_RSS_Date%>
The date's string format is: ddd, dd MMM yyyy hh:mm:ss EST
So, what am I doing wrong here?
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/reddot-cms-users?hl=en.