#set( $xmledithome = $context.getPageProperty("xmledithome")) #set( $readonly = "false" ) #set( $readonly = $context.getRequestParameter("detailsreadonly")) ##We need 3 things passed in: $searcher, $view, $data #if (!$details && $view) #if( $context.getUserProfile() ) #set ($details = $searcher.getDetailsForView($view, $context.getUserProfile())) #else #set ($details = $searcher.getDetailsForView($view)) #end #end #if( !$details) [[404 on view]]: $searcher.getCatalogId() $searcher.getSearchType() $view #end ##leagacy check. We used to pass in the $details #if( !$details) #set ( $details = $searcher.getPropertyDetails() ) #end
#if(!$detailviewercolumns) #set($detailviewercolumns = 2) #end #set($detailviewercolumnclass = "col-lg-12 col-xl-6") #if($detailviewercolumns == 1) #set($detailviewercolumnclass = "col-12") #end
#foreach( $detail in $details ) #set( $val = false ) #set( $target = "${detail.id}.value" ) #set( $val = $context.getRequestParameter($target) ) #if( $searcherManager ) #set( $val = $searcherManager.getValue($data,$detail) ) #else #set( $val = $!{data.getProperty($detail.getId())} ) #end #if( !$val ) #set( $val = $!{data.get($detail.getId())} ) #end $!context.putPageValue("detail",$detail) #if($detail.dataType == "searchjoin" ) #set($viewtype = "searchjoin" ) #else #set($viewtype = $detail.viewType) #end #if (!$viewtype) #set($viewtype = $detail.dataType) #end #if (!$viewtype || $viewtype== "text") #set ($viewtype = "default") #end
#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( !$val) #set( $val = "") #end $!context.putPageValue("val",$val) #if( $detail.hidelabel == true ) #else #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
##needed for fast loading HTML edit boxes #if( $usedhtml && $readonly != "true") $pages.include("/system/tools/html/textarea.html?$usedhtml") #end