^descendants( [template][,N] )^

Tinderbox Icon


Code Type:   Data Include
Code Scope of Action:   item

^descendants^

Tells Tinderbox to include the descendants of the current note (or agent) in the current web page using their default template file.

^descendants( template )^

Tells Tinderbox to include the descendants of the current note (or agent) in the current Web page using the specified template file.

^descendants( template,N )^

Tells Tinderbox to include only the first N descendants of the current note (or agent) with the specified template file. If N is used without a template, a comma must be placed before N. In finding N matches, the first branch is to its tip, then all siblings then recursing up branch #1's sub-branches before starting branch #2.

To export immediate children but not the children's descendants, see ^children( template )^. This replaces the old usage of ^children^.

^descendants^ evaluates its template argument, allowing agents and containers to use expressions like

^descendants(^value($MyTemplate)^)^

The HTMLDontExport settings of children are respected.


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

Up: Data Include

A Tinderbox Reference File : Export Codes : Export Code Types : Data Include : ^descendants( [template][,N] )^

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox