#if ( $hits.size() == 0 ) [[No results found]] #else #if(!$view) #set($view = $context.getRequestParameter("view")) $context.putPageValue("view", $view) #end #set( $moduleid = $page.get("module") ) $context.putPageValue("clink", "$apphome/views/modules/${moduleid}/edit/edit.html") #set($clink = "$apphome/views/modules/${moduleid}/edit/edit.html") #set( $resultdetail = $searcher.getDetailsForView("$view", $userprofile))
#set( $sortby = $hits.getSearchQuery().getSortBy() ) #foreach( $detail in $resultdetail ) #end #set( $even = true ) #set($count = 0) #foreach ( $cell in $hits.getPageOfHits() ) $context.putPageValue('data', $cell) $context.putPageValue('cell', $cell) #foreach( $detail in $resultdetail ) #end #set($count = $count + 1) #end
#text( $detail.text ) #if( $edit) #elseif ($sortby.startsWith($detail.getId())) #if($sortby.endsWith("Up")) #set($sorticon="up") #else #set($sorticon="down") #end     #end
$context.putPageValue('val', $!cell.get($detail.id)) $context.putPageValue('detail', $detail) $pages.include("$apphome/components/moduleresults/cell.html", $context)
#end