This version is out of date, covering development as far as v4.2.5. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
A Tinderbox Reference File : Export Codes : Export Codes - Full Listing : ^getFor(path | item, attribute[, format] )^ (from v3.0.0) |
^getFor(path | item, attribute[, format] )^ (from v3.0.0) |
[Used from v 3.0.0]
^getFor( path | item, attribute[,format])^
Gets any attribute you specify for any note you specify via the path. Note that:
^getFor (CurrentFileName, attribute)^
will get any attribute of the file like a root note. You can use just the note name, a partial path or a full path with outline layers being delimited with forward slashes: 'top/middle/bottom/note'
Multiple levels of inclusion are permitted, but cycles are detected and broken.
Color values - regardless of how defined inside the TBX (name, RGB or hex) are exported as hex; e.g #FF0000.If the attribute is of 'date' type then optionally a format string may be cited.
Since paths let you do everything the old syntax allowed (and more), the old syntax is considered confusing and has been dropped.
Up: Item-based | |
Previous: ^getFor( item, descendedFrom, attribute[, format] )^ (pre v3.0.0) | Next: ^inboundBasicLinks( [start, list-item-prefix, list-item-suffix, end, type] )^ |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]