Versions Compared

Key

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

...

Document Properties Marker
doctypetopic
overridefalse


Short DescriptionIn case an author requires to identify a document element elements to the readerreaders, for instance a numbering of paragraphs or sentences, the Content Marker Macro allows to employ a page-related auto-numbering and provides means to specify the format in which for these consecutive numbers are rendered.
NameIdentify Document Elements
Short Name
Parent
Parent Property
property-nameName
hide
Audience

Name List
doctyperole
render-no-hits-as-blanktrue
namesAuthor, Template Author
property-restrict-value-rangetrue
propertyAudience
empty-as-nonetrue


Subject
Name List
doctypesubject
propertySubject

Categories
Name List
doctypecategory
property-restrict-value-rangetrue
propertyCategories

Tags
Tag List
propertyTags

Flagshide
Iteration

Iteration
valuefilledreleased

hide
Type

Name List
doctypetopic-type
render-no-hits-as-blanktrue
namesTip
property-restrict-value-rangetrue
propertyType


Level of Experience

Name List
doctypeexperience-level
render-no-hits-as-blanktrue
namesCompetent
propertyLevel of Experience


Expected Duration
Sponsors
Name List
doctypestakeholder
render-no-hits-as-blanktrue
propertySponsors

Sort Keyhide


...

Section
show-titlefalse
titleDescription

The 

Static Document Link
documentContent Marker Macro
allows to wrap content with an identifier to form a content element. It also allows to associate the content element with a sequence number. The projectdoc Toolbox then auto-numbers the content elements and allows to render this number with the content element.

This is useful helpful for documents where readers need to identify content elements like paragraphs or sentences.

This tip shows a use case where the Content Marker Macro is used to track the definitions and explanations within a specification document.

...

Section
titlePrerequisites

This feature is supported with version 4.12 of the projectdoc Toolbox.


projectdoc-section
titleUse case

Suppose you need For a specification document suppose 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: ...) and each explanation (Expl.1, Expl.2, and so on...) should have its own sequence number for unique identification within a document.


Section
titleImplementation

For this example there are three definition and two explanations within a chapter of the specification document.

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:

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-static-document-link-macro
documentprojectdoc-render-counter-element
plus
 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

Static Document Link
documentRender Counter Template
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
.

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

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

The rendered content is now:



Section
titleMultiple Elements

It is possible to add multiple elements within one paragraph. In the following example we assume that D.1 and E.1 belong together and D2, D.3, and Example.1 also should be part of one paragraph.

Image Added

The Content Marker Macros are enclosed in additional Content Marker Macros where the Merge Block Elements parameter is set to true.

This is the rendered content:

Image Added


Section
titleRender Counter Context

The render counter context allows to define render counter sequences with the same name in different contexts. Each context is identified by its name. A

Static Document Link
documentContent Marker Macro
is associated with a Render Counter and optional with a Render Counter Context, defined by parameters.

The render counter context is especially useful if the Content Marker Macros are transcluded on the same page. In this case set the Render Counter Context on a wrapping Content Marker Macro around the source content.

Image Added


Section
titleMultiple Documents

In case the chapters of a document are on separate pages, the start value may be specified by a document property of the following format:

Code Block
{render-counter-context}#{render-counter}


Example Box
titleExample for valid Values
  • #definition
  • source#definition



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

...

Section
titleReferences


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





Section
titleResources


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


TitleShort Description




...