Sorry, this page is only available in one language

NextPage

Suggested dropletname: NextPage

Published by: dev4me

A droplet that will create a link to the previous page on the same level.

Used together with PrevieouwPage you can create a nice browsing experience through arrticles on your website.

$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);
$nxt = $nSib < $nSibCount ? $nSib + 1 : 0;
if ($nxt > 0) {
    return show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER,    "[if(sib==$nxt){>> [a][menu_title]</a>}]", '', '', '');
}
else 
    return '(no next)';

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



« Previous droplet | Overview | Next droplet »