#set ($page = $_XPathTool.selectSingleNode($contentRoot, "/system-index-block/calling-page/system-page")) #set ($image = $page.getChild("system-data-structure").getChild("image").getChild("lead").getChild("path").value) #set ($caption = $page.getChild("system-data-structure").getChild("image").getChild("caption").value) #set ($fname = $page.getChild("system-data-structure").getChild("content").getChild("fname")) #set ($lname = $page.getChild("system-data-structure").getChild("content").getChild("lname")) #set ($major = $page.getChild("system-data-structure").getChild("content").getChild("major")) #set ($year = $page.getChild("system-data-structure").getChild("content").getChild("year")) #set ($employer = $page.getChild("system-data-structure").getChild("content").getChild("employer").value) #set ($url = $page.getChild("system-data-structure").getChild("content").getChild("url[. != '']").value) #set ($jobtitle = $page.getChild("system-data-structure").getChild("content").getChild("jobtitle").value) #set ($town = $page.getChild("system-data-structure").getChild("content").getChild("town").value) #set ($teaser = $page.getChild("system-data-structure").getChild("content").getChild("teaser")) #set ($sections = $page.getChild("system-data-structure").getChild("content").getChildren("sections")) #set ($title = $page.getChild("title")) #set ($date = $_DateTool.getDate($page.getChild("start-date").value))
#if ($date != "")
$_DateTool.format('MMMM dd, yyyy', $date)
#end #if ($title != "")

$_SerializerTool.serialize($title, true)

#else

$_SerializerTool.serialize($fname, true) $_SerializerTool.serialize($lname, true)

#end
#if ($image != "/") #end #if ($caption != "")

$caption

#end
#if ($teaser != "")

$_SerializerTool.serialize($teaser, true)

#end

$_SerializerTool.serialize($fname, true) $_SerializerTool.serialize($lname, true) , $_SerializerTool.serialize($major, true), $_SerializerTool.serialize($year, true)

Co-op Employer:  #if ($url) ${employer} #else ${employer} #end

Co-op Position:  ${jobtitle}

Hometown:  ${town}

#foreach ($section in $sections) #set ($head = $section.getChild("heading").value) #set ($text = $section.getChild("text"))

${head}
$_SerializerTool.serialize($text, true)

#set ($head = "") #set ($text = "") #end