#set( $section = $searcherManager.getData($catalogid,"detaileditormenu",$assettab) )
$context.getText($section.getName())
#if( $canviewassets )
#if( $hits && $hits.hasMultipleSelections() )
[[Selected Media]]
#else
#if($isattachments)[[Attachments]] #else [[Related Media]]#end
#end
#end
$pages.include("$apphome/components/detaileditor/assetmenuul.html?moduleid=$moduleid",$context)
#set( $inpreviewpage = $content.isPropertyTrue("showpreviewpage") )
#if( $content.assetrootfolder && $content.path.startsWith($content.assetrootfolder) )
#set( $inpreviewpage = true )
#elseif( $content.assetrootfolder && $content.path.startsWith($content.assetrootfolder) )
#set( $inpreviewpage = true )
#end
#if( $inpreviewpage )
$pages.include("$apphome/views/modules/$moduleid/editor/viewer/index.html", $context)
#else
#set( $showviewer = $content.isPropertyTrue("showviewer") )
#if($showviewer)
$pages.include("$apphome/views/modules/$moduleid/editor/viewer/index.html", $context)
#else
#set( $hidepreview = $content.isPropertyTrue("hidepreview" ))
#if(!$hidepreview)
$pages.include("$apphome/components/mediaviewer/player/mini.html", $context)
#end
#end
#set ($listid = $content.tab )
#if ($content.subtab)
#set( $screens = $searcherManager.query($catalogid,$listid).all().sort("name").search() )
#foreach($screen in $screens)
-
$context.getText($screen)
#end
#end
$pages.includeContent()
#end
#if( $canviewassets || $order )
#if( $hits && $hits.hasMultipleSelections() )
$pages.include("$apphome/components/results/related/byselection.html",$context)
#else
$pages.include("$apphome/components/results/related/bykeyword.html",$context)
#end
#end