All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.greenpepper.confluence.themes.page.vmd Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
## PAGE SPECIFIC DECORATOR
## Here the context is the page. Modes are 'view', 'edit', 'edit-preview', 'view-information', and 'view-attachments'.

#set ($helper = $params.get("helper"))
#set ($mode = $params.get("mode"))
#set ($context = $params.get("context"))
#set ($confPage = $helper.page)

#infoPanelInitFromParams()
## GENERAL PAGE DECORATING BEGINS

#requireResourcesForContext("page")

#if ($mode != "edit" && $mode != "edit-preview")
    #parse ("/decorators/includes/content-navigation.vm")
#end

#if ($infoPanelRequired)

    #infoPanel(true true true true)

#end

#if( ($mode != "edit" && $mode != "edit-preview" ))

	#foreach ($webPanel in $webInterfaceManager.getDisplayableWebPanels("atl.page.left.sidebar", {"page": $confPage, "context": $context}))
    	$!webPanel.getHtml($action.context)
    #end

#end

#parse("/decorators/includes/page-content-includes.vm") ## MODE SPECIFIC DECORATING BEGINS #* Display page based on mode: currently 'view', 'edit', 'preview-edit', 'info' and 'attachments. See the individual page templates (viewpage.vm, editpage.vm, etc.) for the setting of the mode parameter. *# ## VIEW #if ($mode == "view") #if ($space.personal) #set ($usernameFromSpaceKey = $spaceUtils.getUsernameFromPersonalSpaceKey($spaceKey)) #if ($permissionHelper.canView($action.remoteUser, $action.getUser($usernameFromSpaceKey))) ## Deprecated: needed in case main.vmd hasn't been updated true #end #end #requireResourcesForContext("viewcontent") #set ($labelable = $page) #permitSearchEngines() #if ($helper.isHistoricalVersion()) true #end #parse ("/decorators/includes/page-metadata.vm") #if ($helper.isHistoricalVersion() || $helper.action.navigatingVersions) #versionInfo() #end ## If you choose to move page it's being done from view mode #putMetadata('browse-page-tree-mode', 'view') #putMetadata('parent-page-id', $!parentPage.id)
## GREENPEPPER #parse($greenPepper.header)
#parse($greenPepper.body)
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page)) #if ($mode != "edit" && $mode != "edit-preview") #set($labelable = $page) #parse("/labels/labels-editor.vm") #end #if (!$action.childrenNotShown) #renderChildren() #end #applyDecorator("root") #decoratorParam("sitemeshPage" $sitemeshPage) #decoratorParam("page" $page) #decoratorParam("context" "comments") #end ## EDIT || PREVIEW-EDIT #elseif ($mode == "edit" || $mode == "edit-preview") $body ## INFO #elseif ($mode == "view-information") #requireResourcesForContext("viewinformation") $body ## ATTACHMENTS #elseif ($mode == "view-attachments" || $mode == "move-attachments" || $mode == "view-attachment") #requireResourcesForContext("viewattachments") $body ## FOR CUSTOM WEB-ITEMS #else $body #end ## MODE SPECIFIC DECORATING ENDS
## GENERAL PAGE DECORATING ENDS #parse ("/pages/page-breadcrumbs.vm") #menuMacros_renderBrowseMenu()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy