Smartsite SXML CopyCode image Copy Code
<se:sqlquery save="siblingsdata" resulttype="datatable">
    <se:parameters>
        <se:parameter name="sql">select nr, title from {channel.view()} where parent={itemdata.parent()}</se:parameter>
    </se:parameters>
</se:sqlquery>

<se:siblings>
    <se:parameters>
        <se:parameter name="displayfirst">&nbsp;<b>&lt;&lt;</b>&nbsp;</se:parameter>
        <se:parameter name="displaylast">&nbsp;<b>&gt;&gt;</b>&nbsp;</se:parameter>
        <se:parameter name="displaynext">&nbsp;<b>&gt;</b>&nbsp;</se:parameter>
        <se:parameter name="displayback">&nbsp;<b>&lt;</b>&nbsp;</se:parameter>
        <se:parameter name="siblingorder">first,back,next,last</se:parameter>
        <se:parameter name="inputdata">siblingsdata</se:parameter>
        <se:parameter name="currentkey">{itemdata.number()}</se:parameter>
        <se:parameter name="format">
            <se:rowformat>
                <a href="{channel.link(this.field(nr))}" title="{this.field(title)}">{this.field(display)}</a>
            </se:rowformat>
            <se:captionformat expression="this.rownr()==3"> 
                {this.currentindex()} / {this.siblingcount()}
            </se:captionformat>
        </se:parameter>
    </se:parameters>
</se:siblings>