Cms ContentTypes Example

In this example the cms.contenttypes() viper is used as input (datatable) for an se:format macro.

The table below displays what the result would be like (depending on the contenttypes of the site).


Number Code Name Description Icon
1 WP Web Page Default type for website data
2 TRA Translation Smartsite 6 Translations
3 BIN Binary Generic binary data
4 RT Render Template Smartsite 6 Style
5 CF CMS Folder CMS Folder
6 CH Channel Channel Definition
7 REF Reference Shortcuts to other items or external references
8 THS Thesaurus Smartsite 6 Thesauri
9 IMG Image Images
10 WFA Application Workflow Application Workflow Definition
11 WFD Workflow Definition CMS Workflow Definition
12 JS Javascript Client Side Javascript
13 CSS CSS Cascading Style Sheet
14 XML XML Data XML Markup
15 XSL XSLT XSLT Templates
16 XSD XML Schema XML Schema
17 FRM Form Form Data
18 PWP Plain Web Page Uses plain editor
19 AWP Application Page Uses an empty Render Template, useful for embeds etc
21 DOC SXML API Item SXML API Documentation Page
28 SMX Smartsite Example Code Smartsite iXperion Example Code
29 DDG Conceptual Item Smartsite iXperion Conceptual Documentation Page
30 DEP Smartsite Error Smartsite iXperion Error Message Documentation Page
31 RNP Release Note Page Smartsite iXperion Sandcastle Documentation Page
32 SCE Configuration Element Smartsite iXperion Configuration file element
33 SCA Configuration Attribute Smartsite iXperion Configuration file attribute
34 TRT System Translation Translations used within render templates
35 SCX Configuration Example Smartsite iXperion Configuration Example
36 POR Portal Web Page Smartsite iXperion Portal Web Page
37 FLK File Link References files on disk
38 API C# API Documentation Page Sandcastle C# API Documentation Page
39 SRP SMI Report SMI Report
40 SRM SMI Report Module SMI Report Module
41 RIA Rich Application Page Uses a render template with standard headers
42 KB Knowledge Base Smartsite iXperion Knowledge base Article
Smartsite SXML CopyCode image Copy Code
<se:format inputdata="{cms.contenttypes()}" whitespace="simpleformat">
    <se:parameters>
        <se:parameter name="format">
            <se:colformat expression="this.colnumber() LT 5" whitespace="remove">
                <td>{this.field()}</td>{char.crlf()}
            </se:colformat>
            <se:colformat expression="this.colname()=='Icon'" whitespace="remove">
                <td><img src="{this.field(icon)}"/></td>
            </se:colformat>
            <se:rowformat>
                <se:rowresult><tr>{this.rowresult()}</tr>
            </se:rowresult>
            </se:rowformat>
            <se:captionformat match="first">
                <se:colformat expression="this.colnumber() LT 5">
                    <th>{this.colname()}</th></se:colformat>
                <se:colformat expression="this.colname()=='Icon'">
                    <th>{this.colname()}</th>
                </se:colformat>
                <se:rowresult><tr>{this.rowresult()}</tr></se:rowresult>
            </se:captionformat>            
        </se:parameter>
        <se:parameter name="resultformat">
            <table>{this.result()}</table>
        </se:parameter>
    </se:parameters>
</se:format>