#set( $xmledithome = $context.getPageProperty("xmledithome")) $context.putPageValue("xmledithome",$xmledithome) #set( $readonly = "false" ) #set( $readonly = $context.getRequestParameter("detailsreadonly")) #ifnull($viewid) #set($viewid = $context.getRequestParameter("viewid")) #end #set( $viewdata = $mediaarchive.getCachedData("view",$viewid) ) #ifnull($details) #set ($details = $viewdata.getDetailsForView($context.getUserProfile())) #end #ifnull($details) No viewdata found viewid: $viewid $content.path #end
#set( $detailviewercolumns = $context.getRequestParameter("detailviewercolumns")) #if(!$detailviewercolumns) #set($detailviewercolumns = 2) #end #set($detailviewercolumnclass = "col-12 col-md-6") #if($detailviewercolumns == 1) #set($detailviewercolumnclass = "col-12") #end
#foreach( $detail in $details ) #set($detailid = $detail.getId()) #set($values = false) #set($value = "") #set( $editrow = $detail.isEditable() && $readonly != "true") #if($editrow) #set( $target = "${detailid}.value" ) #set( $contextval = $context.getRequestParameter($target) ) #ifnull( $contextval ) #set( $contextval = $context.getPageValue($target) ) #end #ifnotnull($contextval) #set($value = $contextval) #end #end #if(!$value) #set($value = $searcherManager.getValue($data, $detail, $context.getLocale() ) ) #if($detail.isMultiValue()) #set($values = $value ) #end #end #if(!$value && $detailid=="primarymedia") #set( $value = $!data.getValue("primaryimage") ) #end #if( $editrow || $value || $values)
$!context.putPageValue("value",$value) $!context.putPageValue("values",$values) $!context.putPageValue("detail",$detail) #if ($detail.header) #if ($detail.header != "blank")

$detail.header

#end #end #if( $editrow || $val || $value || $values || !$detail.isEditable() || $detail.dataType == "searchjoin" ) #if( $detail.hidelabel == true ) #else #end
#if( $editrow ) $pages.include("$xmledithome/detailedit.html", $context) #if ( $detail.note ) $context.getText($detail.note.toString()) #elseif($detail.viewType == "tageditor") [[Hit]] [[enter]] [[or]] [[return]] [[key after typing each tag]] #end #else ##NOT EDITABLE
$pages.include("$xmledithome/detailreadonly.html", $context)
#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 #end