Versions Compared

Key

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

...

Document Properties Marker
overridefalse


Short DescriptionWriting page blueprints includes to configure wizards for easy page creation. If the field identifier contains dots there is a problem with a simple solution.
Doctypetopichide
NameIdentifiers with Dots
Short Name
Parent
Parent Property
property-nameName
hide
Audience

Name List
doctyperole
render-no-hits-as-blanktrue
namesTemplate Author
propertyAudience


Subject
Name List
doctypesubject
propertySubject

Categories
Name List
doctypecategory
propertyCategories

Tags

Tag List
render-list-as-comma-separated-valuestrue
namesConfluence, projectdoc Toolbox, JavaScript, page blueprint, template, Soy
propertyTags

hide
Flagshide
Iteration

Iteration
valuefocused

hide
Type

Name List
doctypetopic-type
render-no-hits-as-blanktrue
namesTip
propertyType


Level of Experience

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


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

Sort Keyhide



Section
show-titlefalse
titleDescription

A Template Author may need to specify the identifier for an input field of a wizard for the blueprint for one of the doctypes. This identifier my contain dots which cause problems since in the JavaScript environment a dot signals a dereference of an object property. In our case the dot is just a character that is part of the identifier.

This tip is intended for users of the PDAC1, but it will work for any blueprint for Confluence.


projectdoc-box-note
titleChange with Version 6.0

Since version 6.0 of the projectdoc Toolbox the dots in identifiers are replaced by underscores.

projectdoc.doctype.common.name is now specified as projectdoc_doctype_common_name


projectdoc-section
titleSummary

The trick is to escape the dot with two backslashes, not one.

Panel
#projectdoc\\.strategic-theme\\.duration\\.from


...

Section
titleResources


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


TitleShort Description
Doctype Maven Plugin
AUI Date PickerDocumentation for the Confluence AUI date picker.
Date Picker DesignInformation on the design of the Confluence date picker.
Writing Soy templates in your pluginThe tutorial shows how to write a Soy template for Confluence plugins with JavaScript. 
How to use JavaScript in ConfluenceIntroduction on how to use JavaScript with Confluence.
JavaScript property access: dot notation vs. brackets?Alternative approach to access object properties with JavaScript not discussed in this tip.
JavaScript Langage Language ResourcesInformation on developer.mozilla.org on JavaScript.



...