The Tree of Widsdom

智慧の樹

PostTitleNUM

^do( PostTitleNUM, [no args] )^

Type: Macro

Purpose: Inserts numbered title based on $DEExport setting

Like PostTitle, the PostTitleNUM macro inserts the title of the note depending on the value of $DEExport, but prepends it with the note’s sibling order, properly formatted with hanging indent.

Hover below to reveal BoxPress code

^if($blogExpOpt(parent).contains("NUM")|($DENum))^
<div style="display: table-cell;"><span class="titlenum">^value($SiblingOrder)^.</span></div>
<div>^if($DEExport)^^value($DisplayName)^^else^^value($Name)^^endIf^</div>
^else^
^if($DEExport)^^value($DisplayName)^^else^^value($Name)^^endIf^
^endIf^