Channel Contenttypes Example

This example shows you how to display the available contenttypes within the active channel.

The result will be something like:


Number Code Name Description Icon
1 WP Web Page Default type for website data
3 BIN Binary Generic binary data
7 REF Reference Shortcuts to other items or external references
9 IMG Image Images
12 JS Javascript Client Side Javascript
13 CSS CSS Cascading Style Sheet
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
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
<p>Contenttypes available within '{channel.name()}' channel:</p>
<se:format inputdata="{channel.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>