#set( $showtoolbar = $page.isPropertyTrue("showtoolbar")) $context.putPageValue("showtoolbar", $showtoolbar) #set( $cdn = $mediaarchive.getCatalogSettingValue("cdn_prefix")) #if( $cdn ) $context.putPageValue("cdn", $cdn) #else [[Error: CDN prefix is not set in catalog settings]] #end $context.putPageValue("assetrootfolder", "/$catalogid/assets") #if( !$thumbsize ) #set( $thumbsize = "thumb" ) #end #if( !$thumbsize ) #set( $thumbsize = "thumb" ) #end #if ( $hits && $hits.size() > 0 )
#set( $rootid = $hits.sessionId ) #set($count = 0) #set( $viewerlink = $content.get("assetviewerlink") ) #foreach ($hit in $hits) #set ($sourcepath = $hit.sourcepath) $context.putPageValue("hit", $hit) #set( $type = $mediaarchive.getMediaRenderType($hit.fileformat)) $context.putPageValue("type", $type) $context.putPageValue("assetid", $hit.id) $context.putPageValue("count", $count ) $context.putPageValue("sourcepath", $hit.sourcepath ) $context.putPageValue("thumbsize", "medium" ) #if ($!hit.width) #set($assetwidth = $hit.width) #else #set($assetwidth = 0) #end #if($!hit.height) #set ($assetheight = $hit.height) #else #set($assetheight = 0) #end #set($click = "$viewerlink?hitssessionid=${hits.getSessionId()}&assetid=${hit.id}") #set ( $count = $count + 1) #end
#end #if ( $hits.totalPages == 0 )

[[No results found.]]

#end