Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
Document Properties Marker
overridefalse
Short DescriptionThe standard context provider for home and special pages. 
Doctypecomponenthide
NameSubspaceContextProvider 
Classde.smartics.projectdoc.atlassian.confluence.page.partition.SubspaceContextProvider 
Parent
Parent Property
property-nameName
 
Audience
Name List
doctyperole
render-no-hits-as-blanktrue
namesTemplate Author, Documentation Architect
propertyAudience
empty-as-nonefalse
 
Categories
Name List
doctypecategory
propertyCategories
 
Tags
Tag List
propertyTags
 
Iteration
Iteration
valuefilled
hide
Sort Keyhide
Column
Panel
borderColororange
titleColorwhite
titleBGColororange
titleContents

Table of Contents
indent15px
stylenone

Section
titleAbstract

Section
titleDescription

The main purpose of the context providers is to provide an infrastructure to create this page in the context of creating multiple pages. This is usually the case for projectdoc homepages for document types. It may also be the case for special pages.

This context provider creates the name and short description for a page by applying naming conventions to the I18N keys.

I18N KeyDescription
projectdoc.doctype.my-template-key.nameReferences the localized name of the document.
projectdoc.doctype.my-template-key.short-descriptionReferences the localized short description for the document.

If this lookup in the resource bundle of the plugin provides no result, the following keys are checked:

I18N KeyDescription
projectdoc.doctype.my-template-key.homeReferences the localized name of the document.
projectdoc.doctype.my-template-key.home.short-descriptionReferences the localized short description for the document.
Section
titleProvided Context Parameters
Section
level2
titleName and Short Description

The following blueprint context parameters are set:

Parameter NameDescription
projectdoc.doctype.common.name

The name of the document. The title of the page is usually identical or derived from the name.

For more information on document names and page titles please refer to Name and Title.

projectdoc.doctype.common.shortDescription

The short description for the document.

Transclusion
taget-heading-level2
documentPage Title and Document Name Handling
idsContent

Transclusion
taget-heading-level2
documentAdd Space Information to Blueprint Context
idsContent

Transclusion
taget-heading-level2
documentAdd Creation Metadata to Blueprint Context
idsContent

Transclusion
taget-heading-level2
documentTranslate Placeholders in Short Description
idsContent

Section
titleExample Usage

The context provider is used for home and index templates of your blueprint.

The following fragment registers your home and index templates as Content Template Modules:

Code Block
languagexml
<content-template
  key="category-home-template"
  i18n-name-key="projectdoc.content.my-template-key.home.title">
  <description key="projectdoc.content.my-template-key.home.description" />
  <resource
    name="template"
    type="download"
    location="/my/path/to/home.xml" />
  <context-provider class="de.smartics.projectdoc.atlassian.confluence.page.partition.SubspaceContextProvider" />
</content-template>
<content-template
    key="category-index-template"
    i18n-name-key="projectdoc.content.my-template-key.index.all.title">
  <description key="projectdoc.content.my-template-key.index.all.desc" />
  <resource
    name="template"
    type="download"
    location="/my/path/to/index.xml" />
  <context-provider class="de.smartics.projectdoc.atlassian.confluence.page.partition.SubspaceContextProvider" />
</content-template>

The my-template-key is usually the name of the template (e.g. retrospectives or user-characters).

Section
titleUse Cases
Display Table
doctypeuse-cases
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
empty-as-nonetrue
Section
titleQuality Scenarios
Display Table
doctypequality-scenario
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
empty-as-nonetrue
Section
titleArchitecture Aspects
Display Table
doctypearchitecture-aspect
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
empty-as-nonetrue
Section
titleViews
Display Table
doctypeview
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
where$<Doctype> = [view]
empty-as-nonetrue
Section
titleSubordinate Components
Display Table
doctypecomponent
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
Section
titleRelated Components
Display Table
doctypecomponent
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name
empty-as-nonetrue
Section
titleArchitecture Decisions
Display Table
doctypedecision
render-no-hits-as-blanktrue
selectName, Short Description
sort-bySort Key, Name
where$<Type> = [Architecture] AND Doctype NOT "decision-type"
empty-as-nonetrue
Section
required-permissionswrite-access
titleNotes

Section
titleReferences

Section
titleResources