plainblack.com
Username Password
search
Bookmark and Share

PrevNext Macro navigation buttons

Provides YUI-powered previous/next buttons for inline page navigation, doing a depth-first search one level deep. Handy if you want people to be able to click "next, next, next" to navigate through your content. You probably want to use this in your Page Layout template.

Generates attractive YUI button markup which gracefully degrades to a standard link tag when javascript is disabled.

Contains test suite.

This macro was implemented by the always awesome Colin Kuskie (perlDreamer) and funded by SDH Consulting Group.

Release Notes for Version 1 (12/18/2008)

Import default_prev_next.wgpkg, copy PrevNext.pm into /data/WebGUI/lib/WebGUI/Macros and add PrevNext to the list of macros in your site config file.

Tested against WebGUI 7.6.7-beta.

Comments
5elnino: "very timely! Thank you
"
4elnino: "I suggest that the package be imported into the Import Node under folder named Macro/PrevNext"
2elnino: "Apparantly requires 7.6 of some sort. I'm getting: Can't locate object method "getLineageIterator" via package "WebGUI::Asset::Wobject::Layout" at /data/WebGUI/lib/WebGUI/Macro/bazaar_PrevNext.pm line 130."
5elnino: "works in 7.6.27"
0elnino: "however it does spit out an warn message that a URL doesn't exist, (the macro asks for the assetID) but the asset does exist and the macro works. If I use the URL as the error suggests, the macro doesn't work."
0elnino: "opps. the warning is:  WARN - xxx.xxxs.com.conf - WebGUI::Asset::newByUrl[1822] - The URL * was requested, but does not exist in your asset tree."
0elnino: "The * being the assetID I supplied as the first parameter."
4perlDreamer: "There is a typo in the POD.  Instead of using assetId, it really wants a URL."
Downloaddefault_prev_next.wgpkg default_prev_next.wgpkg
PrevNext.pm PrevNext.pm
PrevNext.t PrevNext.t
Linkspatspam
No Support Offered
ScreenshotsScreenshot.png
Statistics Downloads: 3445
Views: 5423
Rating: 4
Updated: 12/17/2008
Keywords button link navigation prevnext yui
NavigationMore from patspam
Back to the Bazaar
© 2023 Plain Black Corporation | All Rights Reserved