%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/
Upload File :
Create Path :
Current File : //home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/siblings.vm

#######################################################
###                SIBLINGS PAGE
###              ------------------
#######################################################
##
#######################################################
##                   HEADER
#######################################################
#if($request.xpage == 'siblings')
  #template("startpage.vm")
    <div class="main layoutsubsection">
      <div id="mainContentArea">
        <div class="xcontent">
#end
#######################################################
##                    TITLE
#######################################################
#set ($titleToDisplay = $services.localization.render('core.siblings.title', ["<a href='$doc.getURL()'>$escapetool.xml($doc.plainTitle)</a>"]))
#template('contentheader.vm')
#######################################################
##               DISPLAY SIBLINGS
#######################################################
##
## List the sibling documents using a livetable
##
#set ($collist = ['doc.title', 'doc.location', 'doc.date', 'doc.author', '_actions'])
#set ($colprops = {
  'doc.title'    : { 'link' : 'view' },
  'doc.author'   : { 'link' : 'author', 'type': 'text', 'filterable': true},
  'doc.location' : { 'type': 'text', 'filterable': true, 'html': true},
  '_actions'     : { 'actions': ['copy', 'rename', 'rights', 'delete'] }
})
#set ($parent = $services.model.serialize($doc.documentReference.lastSpaceReference, 'local'))
#set ($queryFilters = "unique")
#if ("$!request.displayHidden" == '')
  #set ($queryFilters = "${queryFilters},hidden")
#end
#set ($urlParameters = "xpage=getdocuments&childrenOf=$escapetool.url($parent)&exclude=$escapetool.url($doc.fullName)&queryFilters=$queryFilters")
#set ($options = { 
  'url' : "$doc.getURL('get', $urlParameters)",
  'translationPrefix' : 'platform.index.',
  'selectedColumn' : 'doc.location',
  'outputOnlyHtml' : true
})
#livetable('siblingsIndex' $collist $colprops $options)
## Load the hierarchy JS file because the locations of documents in the livetable results are displayed as hierarchy
#set ($discard = $xwiki.jsfx.use('uicomponents/hierarchy/hierarchy.js', {'forceSkinAction': true}))
#######################################################
##                   FOOTER
#######################################################
#if($request.xpage == 'siblings')
        </div> ## xcontent
      </div> ## mainContentArea
    </div> ## main
  #template("endpage.vm")
#end

Zerion Mini Shell 1.0