This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

^sectionNumber( item )^


Code Type: 

Code Scope of Action: 

Code First Added: 

Code Altered: 

 Data Property   [other codes of this type]

 item   [codes with similar scope]

 Already in v5.0.0

 format"


^sectionNumber( item )^

The hierarchical number of the item (note) based on the present hierarchy and outline sort order (i.e. it changes if the source Tinderbox file layout is altered); a number such as 1.3.2 is the second grandchild of the third child of the first top level note. It is the $SiblingOrder number of each ancestor joined by periods.

If item is omitted, e.g. as ^sectionNumber^, the number exported is that of the current note and is equivalent to ^sectionNumber(this)^

If trying to do calculations based on this data, bear in mind that adornments, although not shown outside Map view, number as the last sibling in the level on whose Map they appear.

The ^sectionNumber^ of this page's source note is: 1.19.3.3.24

Or use ^value(if($OutlineDepth >1){collect(ancestor,$SiblingOrder).reverse.format(".")+"."+$SiblingOrder;}else{$SiblingOrder};)^ giving: 1.19.3.3.24


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Export Codes : Export Code Scope : Item-based : ^sectionNumber( item )^