tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/710-homepage-not-publishing-helpCascade CMS: Discussion 2018-10-18T20:36:31Ztag:help-archives.hannonhill.com,2010-02-09:Comment/153957752012-04-19T14:06:15Z2012-04-19T14:07:04ZHomepage not publishing - help!<div><p>We know what format is causing the problem, just don't see a
problem in it...this is what it is</p>
<pre>
<code><div class="events">
<h1>Events</h1>
#set ($currentDate = $_XPathTool.selectSingleNode($contentRoot, "/system-index-block/@current-time").value)
#set ( $pages = $_XPathTool.selectNodes($contentRoot, "/system-index-block/system-page[dynamic-metadata[name='event' and value='Yes']][system-data-structure[endDate > '${currentDate}']]") )
$_SortTool.addSortCriterion("system-data-structure/newDate","","number","ascending","")
$_SortTool.addSortCriterion("system-data-structure/main-title","en","text","ascending","upper-first")
$_SortTool.sort($pages)
#foreach ( $page in $pages )
#set ( $data = $page.getChild("system-data-structure") )
#set ($title = $data.getChild("home-event-title") )
#set ($month= $data.getChild("month") )
#set ($day= $data.getChild("day") )
#set ($href = $page.getChild("link").value )
#set ($start = $page.getChild("start-date").value )
#set ($obj = $_DateTool.getDate($start) )
#set ($posted = $_DateTool.format("MEDIUM", $obj) )
#set ($newDate = $_DateTool.getDate($data.getChild('newDate').value))
#set ($endDate = $_DateTool.getDate($data.getChild('endDate').value))
#set ($startFormatted = $_DateTool.format('MM/dd/yyyy', $newDate))
#set ($endFormatted = $_DateTool.format('MM/dd/yyyy', $endDate))
<div class="post-bar">
<table cellpadding="0" cellspacing="0" border="0" width="313">
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0">
<tr>
<td class="cal_month" height="11" width="38">
$_DateTool.format('MMM', $newDate)</td>
</tr>
<tr>
<td class="cal_day" height="25" width="38">
$_DateTool.format('d', $newDate)#if($data.getChild('endDate').value != "")#if ($startFormatted != $endFormatted)-$_DateTool.format('d', $endDate)
#end
#end
</td>
</tr>
</table>
</td>
<td width="10"></td>
<td valign="top" class="event-link" width="254">
<p><a href="${href}">$_EscapeTool.html($title.value)</a></p>
</td>
</tr>
</table>
</div>
#if ( $foreach.count == 5 ) #break #end
#end
<br />
</div></code>
</pre></div>Graham Lewistag:help-archives.hannonhill.com,2010-02-09:Comment/153957752012-04-19T14:06:36Z2012-04-19T14:06:45ZHomepage not publishing - help!<div><p>Hey Graham --</p>
<p>Is this in a Format? You'll want to use the XML entity reference
and not the ASCII value for special characters.</p>
<p>Try É instead of é</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/153957752012-04-19T14:08:57Z2012-04-19T14:08:57ZHomepage not publishing - help!<div><p>Do you know which field the acute E is being output from?</p></div>Charlie Holdertag:help-archives.hannonhill.com,2010-02-09:Comment/153957752012-04-19T14:12:14Z2012-04-19T14:12:14ZHomepage not publishing - help!<div><p>I am not sure if it's in the format - we are thinking our PR
person added a story that had it in it, and maybe that threw
something off - does that sound possible?</p></div>Graham Lewistag:help-archives.hannonhill.com,2010-02-09:Comment/153957752012-04-19T14:16:12Z2012-04-19T14:16:12ZHomepage not publishing - help!<div><p>got it fixed - she had added it in a few different events that
were being pulled into the homepage. she will not do that anymore
:)</p></div>Graham Lewis