06/08/2012, 18:52:36
GCSimpleSmarty te permet de le faire :
Code :
[== Indéfini ==]
get_sibling(\$direction[,\$assign][,\$alias])
Returns the alias of the next or previous sibling to the specified page. or false.
Arguments:
\$direction - the direction to look in. possible values are prev,previous,-1,next,1
[\$assign] - (optional) The name of the variable to assign the results to.
[\$alias] - (optional) The page alias to find the sibling for. If this is not specified, the current page is used.
Example:
Link to previous sibling: {\$cgsimple->get_sibling("prev","prev_sibling")}{if !empty(\$prev_sibling)}{cms_selflink page="\$prev_sibling" text="Previous"}{/if}