Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleDetails

More information on using this userscript.

Section
titleBanner Rendering

If the page provides enough padding, the banner contains the name of space. If the padding is too thin, only a thin line is rendered.

Screenshot showing the banner with space subject on the left.Screenshot showing the banner without label on the left.

In case the space defines no Subject property, the space name is rendered as default.

Section
titleRequirements

The script requires the following apps to be installed on Confluence.

Tour
render-no-hits-as-blanktrue
render-as-definition-listtrue
marker-column-property-nameTitle
replace-title-with-nametrue
Section
titleStyle Sheet

There is a CSS style sheet to be used as a template to configure the banner.

System Transclusion
code-languageCSS
code-titlevertical-banner-projectdoc.css
file/projectdoc-bookmarklets-and-userscripts/raw/e6886c05befcc3505dd5dbc2526951c6bddf6743/src/main/resources/de/smartics/projectdoc/confluence/vertical-banner-projectdoc.css
system-idbitbucket-smartics
apply-space-propertiesfalse

The userscript renders a class with the lower-cased subject name (invalid chars are replaced with an underscore, spaces by a dash) with a "projectdoc-" prefix.

Example Box

Glossary is translated to projectdoc-glossary.

Space Repository is translated to projectdoc-space-repository.

Modify the CSS rules according to your needs. Add these rules either to the global space stylesheet or to the stylesheet of a single space.

Tip Box

For more information on using CSS with Confluence, please refer to Styling Confluence with CSS

Section
titleConfiguration of Userscript

Typically the banner is not required for every space of a Confluence site. To activate the script for specific spaces, the 

Static Document Link
documentuserscripts:Userscripts Administrator
to-lower-casetrue
 may define a space category, like banner, to be set.

Screenshot of the REST API Browser with the configuration for this userscript.

Configure the space category via the Space Tools.

Screenshot with Space Details on Space Tools.

Once the categories contain a category 'banner', as specified in the 

Static Document Link
documentuserscripts:Activation Record
to-lower-casetrue
 via activation-space-categories, the banner will be shown on every page of that space.

...