ContentType GetGroup Example
This example generates a list of contenttypes, which belong to the same contenttype group as the contenttype of the current item.
Smartsite SXML | Copy Code |
---|---|
<se:format inputdata="{contenttype.getgroup()}"> <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> |