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

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

The 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)

#end

#parse ("/template/includes/actionerrors.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") #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 ## GREENPEPPER #parse($greenPepper.header)
#parse($greenPepper.body) #trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page)) #parse ("/labels/labels-editor.vm") #renderChildren() #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") $body ## ATTACHMENTS #elseif ($mode == "view-attachments" || $mode == "move-attachments") $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