The 404 module has received a security update for any version below v1.6!
If you are using this module on your website you are advised to upgrade the module as soon as possible!

Sorry, this page is only available in one language

PreviousPage

Suggested dropletname: PreviousPage

Published by: Dev4me

A droplet that will create a link to the next page on the same menu level

$info = show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER, '[if(class==menu-current){[level] [sib] [sibCount] [parent]}]', '', '', '');
list($nLevel, $nSib, $nSibCount, $nParent) = explode(' ', $info);
$prv = $nSib > 1 ? $nSib - 1 : 0;
if ($prv > 0) { 
    return show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER, "[if(sib==$prv){[a][menu_title]</a> <<}]", '', '', '');
}
else 
    return '(no previous)';

No parameters are required.

If you don't want to show anything when there is no previous page, replace the last line in return true;



« Previous droplet | Overview | Next droplet »