ContentType GetGroups Example
This example uses the contenttype.getgroups() viper to retrieve a datatable of contenttypes which belong to the contenttype groups WP and XML. This datatable is then formatted using se:format.
Smartsite SXML | Copy Code |
---|---|
<se:format inputdata="{contenttype.getgroups(WP,XML)}"> <se:rowformat> <tr> <td>{this.field(Number)}</td> <td>{this.field(Code)}</td> <td>{this.field(Name)}</td> <td><img src="{this.field(Icon)}" /></td> <td>{this.field(Description)}</td> </tr> </se:rowformat> <se:captionformat match="first"> <se:rowresult> <tr> <th>Nr</th> <th>Code</th> <th>Name</th> <th>Icon</th> <th>Description</th> </tr> </se:rowresult> </se:captionformat> <se:resultformat><table>{char.crlf()}{this.result()}</table></se:resultformat> </se:format> |