isLast class
Permalink Browser Info Environment
How do I get the isLast class to work? In the base Manual Nav block code, I see:
foreach ($links as $link):
$cssClasses = array();
if ($link->isCurrent) {
$cssClasses[] = 'nav-selected';
}
But even isCurrent doesn't seem to be working either.
foreach ($links as $link):
$cssClasses = array();
if ($link->isCurrent) {
$cssClasses[] = 'nav-selected';
}
But even isCurrent doesn't seem to be working either.
Type: | Discussion |
---|---|
Status: | New |
There is no "isLast" functionality built-in to this addon. But you could achieve something like it by changing the manual_nav view.php file to this:
Viewing 15 lines of 24 lines. View entire code block.
Ahh, I had thought that since I saw similar code (isCurrent) to the autonav, the same functions would be available. Thank you for this, it works well for me!