#set( $xmledithome = $context.getPageProperty("xmledithome")) #set( $readonly = "false" ) #set( $readonly = $context.getRequestParameter("detailsreadonly")) #set( $alwaysshow = $context.getRequestParameter("alwaysshow")) ##$context.putPageValue("caneditlists","false") ##We need 3 things passed in: $searcher, $view, $data #if ($view) #if( $context.getUserProfile() ) #set ($details = $searcher.getDetailsForView($view, $context.getUserProfile())) #else #set ($details = $searcher.getDetailsForView($view)) #end #if( !$details) No details available for this view. Please configure your view settings. #end #else ##leagacy check. We used to pass in the $details #if( !$details) #set ($details = $searcher.getPropertyDetails()) #end #end
#foreach ($detail in $details) #set($val = false) #set($target = "${detail.id}.value") #set( $val = $context.getRequestParameter($target)) #if( !$val ) #set( $val = $!{data.getProperty($detail.getId())} ) #end #if( !$val) #set( $val = $!{data.get($detail.getId())} ) #end $!context.putPageValue("detail",$detail) #set( $editrow = $detail.isEditable() && $readonly != "true" ) #if( $editrow || $val || !$detail.isEditable()) #if( !$val) #set( $val = "") #end $!context.putPageValue("val",$val)
#if( $editrow ) $pages.include("$xmledithome/detailedit.html", $context) #else ##NOT EDITABLE $pages.include("$xmledithome/detailreadonly.html", $context) #end #if ( $detail.note )
$detail.note
#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 #if($detail.get('dependson')) #end #end
##needed for fast loading HTML edit boxes #if( $usedhtml && $readonly != "true") $pages.include("/system/tools/html/textarea.html?$usedhtml") #end