yapt, yet another php tiddlywiki..

/***

|Name|NavigationMacro|
|Created by|SaqImtiaz|
|Location|http://tw.lewcid.org/#NavigationMacro|
|Version|0.3 |
|Requires|~TW2.08+|
!Description:
*Creates Next and Prev buttons on tiddlers, to cycle through tiddlers in order.
**you can create next and previous buttons to navigate through your journals, or the tiddlers of a tutorial.
*You can exclude certain tiddlers, or navigate through tiddlers with a specific tag only.
*The tiddlers can be sorted by modified or created.
*Custom ordering will be available after the release of TW 2.1
*Needs to be added to the ViewTemplate
*Buttons are updated dynamically and are hidden if there is no next or previous tiddler.

!Usage
{{{<>}}}
or for more options:
{{{<>}}}
where sort is ''created'' (default) or ''modified''
exlcude is the tag to exclude.
tag is the tag to navigate through.
labelPrevious is the label for the previous button.
labelNext is the label for the next button. 

I recommend adding it to the ViewTemplate in the viewer div:
{{{
}}} !Example: The next and previous buttons at the bottom of this tiddler will cycle through all of my extensions for TW. !History * 25-06-06 : version 0.3, first release !Code ***/ //{{{ window.refreshNavLink = function (e) { var title = e.getAttribute("here"); var sort = e.getAttribute("sort"); var exclude = e.getAttribute("exclude"); if (e.getAttribute("tag")!=undefined) var tag = e.getAttribute("tag"); var navtype = e.getAttribute("navtype"); if (tag) {var tiddlers = store.getTaggedTiddlers(tag,sort);} else {var tiddlers = store.getTiddlers(sort,exclude);} for (var g=0; g
About Home License Lorem Ipsum BugTracker Frontpage Downloads Contacto PayPalDonate RemoteStore Extension Modules Error-Log audits Tw Customization BackButtonFix Mail sent to the TiddlyWikiDev Group TagsCloudPlugin TagsMacro NavigationMacro HoverMenuMacro HaloscanPlugin