#set( $xmledithome = $context.getPageProperty("xmledithome")) $context.putPageValue("xmledithome",$xmledithome) #set( $readonly = "false" ) #set( $readonly = $context.getRequestParameter("detailsreadonly")) ##We need 3 things passed in: $searcher, $viewid, $data #ifnull($viewid) #set($viewid = $context.getRequestParameter("viewid")) #end #ifnull($details) #set( $viewdata = $mediaarchive.getCachedData("view",$viewid) ) #set ($details = $viewdata.getDetailsForView($context.getUserProfile())) #end #ifnull($details) #set ($details = $searcher.getDetailsForView($viewid, $context.getUserProfile())) #end #ifnull($details) No viewdata found for $viewid at $content.path #end
#foreach( $detail in $details )
#set( $val = "" ) #set($val = $data.get($detail.id) ) #set($value = $searcherManager.getValue($data, $detail, $context.getLocale() ) ) #if($detail.isMultiValue()) #set($values = $value ) $!context.putPageValue("values",$values) #end #ifnull($val) #set($val = "") #end $context.putPageValue("val", $val) $context.putPageValue("value", $value) $context.putPageValue("detail", $detail) #if ($detail.header) #if ($detail.header != "blank")

$detail.header

#end #end #set( $editrow = $detail.isEditable() && $readonly != "true") #if( $editrow || $val || !$detail.isEditable() || $detail.dataType == "searchjoin" ) #if( $detail.hidelabel == true ) #else #if ($detail.dataType && $detail.dataType == "boolean" ) $!context.putPageValue("label", $!detail.getText($context)) #else #end #end
#if( $editrow ) $pages.include("$xmledithome/detailedit.html", $context) #else ##NOT EDITABLE $pages.include("$xmledithome/detailreadonly.html", $context) #end #if ( $detail.note ) $context.getText($detail.note.toString()) #end
#end #if ($detail.viewType && ($detail.viewType == "html" || $detail.viewType == "largehtml")) #if($usedhtml) #set( $usedhtml = "htmltextarea=${detail.getId()}&$usedhtml") #else #set( $usedhtml = "htmltextarea=${detail.getId()}") #end #end
#end
#if( $usedhtml && $readonly != "true") $pages.include("/system/tools/html/textarea.html?$usedhtml") #end