FilterByHierarchy Example
This example loads all the items below FILTERBYHIERARCHYEXAMPLEDATA in a DataTable buffer and then outputs only those items that are a child of the items 27191 and 27193.
Smartsite SXML | Copy Code |
---|---|
<se:sitemap startitem="FILTERBYHIERARCHYEXAMPLEDATA" includeroot="true" resulttype="datatable" save="items" /> <se:filterbyhierarchy inputdata="items" parents="27191,27193"> <se:parameters> <se:parameter name="format"> <se:rowformat> {this.field(nr)} = {this.field(title)} <br /> </se:rowformat> </se:parameter> </se:parameters> </se:filterbyhierarchy> |
Example Result | Copy Code |
---|---|
27194 = Een <br /> 27195 = Twee <br /> 27198 = Een <br /> 27199 = Twee <br /> |