#set( $moduleid = $context.findValue("module") ) #set ( $defaultview = $userprofile.getDefaultViewForModule($moduleid) ) #if ( $hits.size() == 0 ) $pages.stream("/${content.searchhome}/empty.html", $context) #else #set( $resultdetail = $searcher.getDetailsForView("${moduleid}/${moduleid}resultstable", $userprofile)) ##set ( $canedit = $context.getPageValue("${moduleid}edit") )
#if($content.isPropertyTrue("showactions")) #end #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) #set( $clink = "$home${content.linkprefix}${cell.id}${content.linksuffix}") #if($content.isPropertyTrue("showactions")) #end #foreach( $detail in $resultdetail ) #end #set($count = $count + 1) #end
#text( $detail.text ) #if( $edit) #end
$context.putPageValue('val', $!cell.get($detail.id)) $context.putPageValue('detail', $detail) $pages.include("/${content.searchhome}/cell.html", $context)
#if($content.isPropertyTrue("showactions")) ##
$pages.include("/${content.searchhome}/selections/togglepage.html")
#end
#end ## $pages.include("/${content.searchhome}/actions.html", $context)