Versions Compared

Key

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

...

Section
titlePrerequisites


Section
titleUse case

Suppose you need to add a number on your definitions and explanations. Each definition and each explanation is enclosed on a

Static Document Link
documentContent Marker Macro
. Each definition should have a number to be uniquely identified within the document, like Def.1, Def.2, and so on. The same is true for explanations: Expl.1, Expl.2, and so on.


Section
titleImplementation

For this example there are three definition and two explanations within a chapter.

Image Added

Each content marker has an identifier (D.1, E.1, D.2, D.3, and Example.1) and a Render Counter (definition or explanation).

The identifier is not related to the render counter. It is probably more stable to identify the element not by the sequence name. If they are not related, references to the content need not to be changed if another content of the same type is added in front at a later time. You may either use a text phrase or some arbitrary identifier.


Section
titleStyling the Render Counter

Without any formatting, the rendered content looks like this:

Image Added

You may add appropriate styles for your design to you space or site style sheet. Alternatively you may use a render template or combine the two approaches.

Section
titleCSS Styles

Each counter is rendered with the class projectdoc-render-counter-element plus the name of the render counter.

Code Block
languagetext
titleCSS Class Names
projectdoc-render-counter-element definition



Section
titleRender Counter Template

Add the style information as a space property named projectdoc.renderCounterElement.template. and append your render counter name (e.g. projectdoc.renderCounterElement.template.definition).

For a layout with tooltip you may use the

Static Document Link
documentLayout Element Macro
.

Image Added

Define the label for the counter in the body of the Layout Element Macro.

Image Added

Note the use of {} as a placeholder for the consecutive element counters. 

The rendered content is now:

Image Added



Section
ignore-template-buttonstrue
titleSubordinate Topics


Hide From Reader

Create from template
blueprintModuleCompleteKeyde.smartics.atlassian.confluence.smartics-projectdoc-confluence-space-core:projectdoc-blueprint-doctype-topic
buttonLabelCreate Topic

Display Table
doctypetopic
render-no-hits-as-blanktrue
render-modedefinition
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name

...