PageTranslation Example
In this example, a listing is generated using two pagetranslations.
Smartsite SXML CopyCode image Copy Code
<se:pagetranslations id="dates">
    <se:collection>
        <se:member name="display">    
            {datetime.format(translation.arg(1, 'd MMMM yyyy'))}
        </se:member>
    </se:collection>
</se:pagetranslations>

<se:pagetranslations id="links">
    <se:collection>        
        <se:member name="menu(number)">   
            <se:xlinks displayfields="nr, title, adddate, moddate" parent="{translation.arg(1)}">
                <se:parameters>
                    <se:parameter name="format">
                        <se:rowformat>
                            <li>
                                <a href="{this.location()}">{this.field(title)}</a>
                                <br/>
                                <small>Added {translation.dates.display(this.field(adddate))},
                                    last modified {translation.dates.display(this.field(moddate))}
                                </small>
                            </li>
                        </se:rowformat>
                    </se:parameter>
                    <se:parameter name="resultformat">
                        <ul>
                            {this.result()}
                        </ul>
                    </se:parameter>
                </se:parameters>
            </se:xlinks>
        </se:member>
     </se:collection>
</se:pagetranslations>

{translation.links.menu(2)}