I've looked throughout the group, and just couldn't find an answer that
addressed the problem I've got.
I've got a content class that pulls a standard field from another (list
linked) page and I need to format that field in a format different than the
required format.
On the element's page, the date is formatted for an RSS feed (dd/mm/yyyy
hh:mm AM), and I need it on the list page to be just mmm d (Aug 21).
Here is what my code currently looks like. No matter where I place the
PreExecute block, I get the 500 error. And I know that the script I've got
on this page works as its working fine on my RSS feed page.
Any ideas? And, unfortunately, having a second date item for my content
publishers to enter/update is not an option.
PegG
------------------------------------------------------------------------------------------------------------------------------------------
<table cellSpacing=3 cellPadding=3 border=0 sizcache="47" sizset="80">
<tbody sizcache="47" sizset="80">
<!IoRangeRedDotEditOnly><!IoRedDot_lst_NewsLinks><span
class="reddotText">[add/re-order/remove links]</span><br /><br /> <
!/IoRangeRedDotEditOnly>
<!IoRangeList>
<tr vAlign=top align=left sizcache="47" sizset="81">
<td vAlign=top width="10%">
<%
var articleDate = new Date("<%std_DateTime%>");
var finalDate = articleDate.format("mmm d");
%>
<%=finalDate %>
</td>
<td sizcache="47" sizset="81">
<!IoRangeRedDotEditOnly><a href="<%lst_NewsLinks%>"><%hdl_ArticleTitle%></a>
<span class="reddotText">[for editing only]</span><br><
!/IoRangeRedDotEditOnly>
<a href="<%std_ArticleURL%>"><%std_ArticleTitle%></a><br>
<em><%std_MediaSource%></em><br>
<%txt_ArticleBlurb%>
<br /><%txt_RelatedBlurb%>
</td>
</tr>
<!/IoRangeList>
</tbody>
</table>
<div class="clear25"></div>
--
You received this message because you are subscribed to the Google Groups
"RedDot CMS Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/reddot-cms-users/-/VeOFBhMpnx4J.
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.