#set( $xmledithome = $context.getPageProperty("xmledithome")) #set( $readonly = "false" ) #set( $readonly = $context.getRequestParameter("detailsreadonly")) #set( $alwaysshow = $context.getRequestParameter("alwaysshow")) #set( $multiedit = "false") #set( $multiedit = $context.getRequestParameter("multiedit")) #if ( $multiedit == "true" ) #set( $multiedit = true) #else #set( $multiedit = false) #end $context.putPageValue("multiedit",$multiedit) $context.putPageValue("longform",false) #if(!$view) #if($viewid) #set($view = "${searcher.searchType}/${viewid}") #end #end ##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) ${searcher.searchType}: [[No details available for this view]] ($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 #set ($mode = $user.get("oe_edit_mode")) #if($viewid) #if($mode && ($mode == "debug" || $mode == "editing" )) [[Edit]] #end #end
#foreach( $detail in $details ) #set($val = false) ##When is need it? - Its Breaking saving Tags. ## #set($target = "${detail.id}.value") ## #set( $val = $context.getRequestParameter($target)) #if( !$val) #set( $val = $!{data.get($detail.getId())} ) #end $!context.putPageValue("detail",$detail) #if ($detail.header) #if ($detail.header != "blank") #end #end #set( $editrow = $detail.isEditable() && $readonly != "true" ) #if( $editrow || $val || !$detail.isEditable() || $detail.dataType == "searchjoin" || $detail.render ) #if( !$val) #set( $val = "") #end $!context.putPageValue("val",$val) #else #if(!$editrow && $alwaysshow == "true") #if( !$val) #set( $val = "") #end $!context.putPageValue("val",$val) #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')) ##TODO: Remove this ugly code, use jQuery in validateandedit.js #end #end
 

#translate($detail.header)

#if( $detail.hidelabel == true ) #else #if ($detail.required == true) * #end $!detail.getText( $context ) #end #if( $editrow ) $pages.include("$xmledithome/detailedit.html", $context) #else ##NOT EDITABLE $pages.include("$xmledithome/detailreadonly.html", $context) #end $!detail.note
#if( $detail.hidelabel == true ) #else #if ($detail.required == true) * #end $!detail.getText($context) #end $pages.include("$xmledithome/detailreadonly.html", $context) #if ( $detail.note ) $detail.note #end
##needed for fast loading HTML edit boxes ## #if( $usedhtml && $readonly != "true") ## $pages.include("/system/tools/html/textarea.html?$usedhtml") ## #end