[tw] Re: Looping through a set of tiddler with prev and next buttons
Yet another road to investigate: Using a fET code http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin Example: http://dansk.tiddlyspace.com/#fET Create a tiddler called fET (without the quotes) write (copied from the source of http://dansk.tiddlyspace.com/#fET ): tiddler fET##show with: systemConfig 5 of [[tiddlers tagged with]] /% !usage tiddler fET##show with: tag number of lines of (how many) [[notification]] !show forEachTiddler where 'tiddler.tags.contains($1)' sortBy tiddler.modified descending script ' window.fetItemsPerPage = $2; function getHeader(context,count) { if (!window.fetStartIndex || window.fetStartIndex 0) window.fetStartIndex = 0; // ensure not to page behind the last page if (window.fetStartIndex = count) window.fetStartIndex = Math.min(Math.max(window.fetStartIndex-window.fetItemsPerPage, 0),count-1); createTiddlyButton(context.place,,null, function(e) { window.fetStartIndex -= window.fetItemsPerPage; story.refreshTiddler(context.viewerTiddler.title,null,true); }); createTiddlyButton(context.place,,null, function(e) { window.fetStartIndex += window.fetItemsPerPage; story.refreshTiddler(context.viewerTiddler.title,null,true); }); var startNo = window.fetStartIndex+1; var endNo = Math.min(count,window.fetStartIndex +window.fetItemsPerPage); return (+startNo+ - +endNo+ $3 + count + $4 tag $1\\)\n\n; } ' write '(index = window.fetStartIndex) (index window.fetStartIndex + $2) ? +tiddler.created.formatString(DD MMM )+\n [[+tiddler.title+]]\n\n : ' begin 'getHeader(context,count)' !end %/ Cheers Måns Mårtensson On 28 Apr., 20:54, Tobias Beer beertob...@gmail.com wrote: Although going down quite a different road — a deliberately manual one — than the other solutions proposed yet, maybe PagrPlugin gives you what you want. Mentioned here at the bottom...http://tobibeer.tiddlyspace.com/#ShowDown ...the actual plugin being used here...http://markdowntutor.tiddlyspace.com/#Overview ...while actually provided here...http://markdowntutor.tiddlyspace.com/#PagrPlugin Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Looping through a set of tiddler with prev and next buttons
I figure this might be worth noting if you wanted a more whole site approach: I like using single page mode: http://www.tiddlytools.com/#SinglePageModePlugin and than just making a simple widget in plan wiki syntax: {{pnSet{ {{Pnav{ [[« Prev|Tiddler1]]}}} -- {{Nnav{[[Next »]]}}} }}} Than all you have to do is change the tiddlers to whatever you want and your done! With a little bit of CSS you can make the whole thing look as simple or complex as you want. To make it easy and fast I added the above snippet to the custom section of my quickedit bar: http://www.tiddlytools.com/#QuickEditPackage On Saturday, April 27, 2013 5:14:57 PM UTC-7, danizobin wrote: I would like to be able to loop through an ordered set of tiddler by seeing one tiddler at a time, and having prev and next buttons to navigate. Does anything like this exist? The selection of tiddlers can come form different sources, this is not the point, asking mainly about the widget of prev - next looping through a predefined set of tiddlers Thanks Dani -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Looping through a set of tiddler with prev and next buttons
Hello Dani, http://tiddlywiki.squize.org/#NavigationMacro It's quite old but you could give a try. FrD Le dimanche 28 avril 2013 02:14:57 UTC+2, danizobin a écrit : I would like to be able to loop through an ordered set of tiddler by seeing one tiddler at a time, and having prev and next buttons to navigate. Does anything like this exist? The selection of tiddlers can come form different sources, this is not the point, asking mainly about the widget of prev - next looping through a predefined set of tiddlers Thanks Dani -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: Looping through a set of tiddler with prev and next buttons
Thank you very much everybody, want to toss in one more detail: the set of tiddlers will be taken from search results (of the YourSearch plugin). Will this work with the each of the solutions that you offered here? On Sun, Apr 28, 2013 at 11:03 AM, FrD sokus...@gmail.com wrote: Hello Dani, http://tiddlywiki.squize.org/#NavigationMacro It's quite old but you could give a try. FrD Le dimanche 28 avril 2013 02:14:57 UTC+2, danizobin a écrit : I would like to be able to loop through an ordered set of tiddler by seeing one tiddler at a time, and having prev and next buttons to navigate. Does anything like this exist? The selection of tiddlers can come form different sources, this is not the point, asking mainly about the widget of prev - next looping through a predefined set of tiddlers Thanks Dani -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] Re: Looping through a set of tiddler with prev and next buttons
Hi, It seems, according to the documentation, that the NavigationMacro cycles through tiddlers with a specific tag. It's not intended to work with a list of tiddlers as input, or a tiddler containing a list of tiddlers ... FrD Le dimanche 28 avril 2013 11:35:09 UTC+2, danizobin a écrit : Thank you very much everybody, want to toss in one more detail: the set of tiddlers will be taken from search results (of the YourSearch plugin). Will this work with the each of the solutions that you offered here? On Sun, Apr 28, 2013 at 11:03 AM, FrD soku...@gmail.com javascript:wrote: Hello Dani, http://tiddlywiki.squize.org/#NavigationMacro It's quite old but you could give a try. FrD Le dimanche 28 avril 2013 02:14:57 UTC+2, danizobin a écrit : I would like to be able to loop through an ordered set of tiddler by seeing one tiddler at a time, and having prev and next buttons to navigate. Does anything like this exist? The selection of tiddlers can come form different sources, this is not the point, asking mainly about the widget of prev - next looping through a predefined set of tiddlers Thanks Dani -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Looping through a set of tiddler with prev and next buttons
At my simplicity space [a], I use a modified version of the NavigationMacro [1] that allows named parameters tag and sortField. It needed some adjustments to work well with TiddlySpace. eg: navigation tag:myStory sortField:sort.order if it is part of the ViewTemplate it looks like this. div class='yourClassForStyling' macro='navigation tag:myStory'/div There is only one story, that is hardcoded. End of 2009 I did some experiments [2] with a SelectStoryMacro and some otheres. Those plugins work, but they are a bit hard to use :) - @FrD Navigation macro can use a list of tiddlers and a tiddler, that contains a list of tiddlers. But you'll need something like this. navigation tiddlers:[[Tiddler1 Tiddler2 Tiddler3]] which is hardcoded and not flexible or something like this. tiddlers:{{store.getTaggedTiddlers(Lewcid,title);}} which imo is a bit hacky. have fun! mario [a] http://simplicity.tiddlyspace.com [1] http://simplicity.tiddlyspace.com/#NavigationMacroMP [2] http://a-pm.tiddlyspot.com/#NavigationPackage [3] http://a-pm.tiddlyspot.com/#SelectStoryTest%20SelectStoryMacro%20NavigationPackage%20StoryGlueMacro%20NavigationMacro -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Looping through a set of tiddler with prev and next buttons
Hi Mario, Thanks for the news about your improvement of Lewcid' navigation macro. It's interesting for me as I use this macro and would prefer to filter the tiddlers with at least two tags instead of one. Along the same lines, I think it would be useful to have a macro that could generalize the tag button. buttonMacro tag:sometag would be the same as tag sometag buttonMacro tiddlers:someexpression would create a button and when clicked it would display a popup menu wih the tiddlers titles. someexpression could be a bracketed list of tiddlers or a javascript expression evaluating to a list of tidlers. Just an idea ... FrD Le dimanche 28 avril 2013 16:50:27 UTC+2, PMario a écrit : At my simplicity space [a], I use a modified version of the NavigationMacro [1] that allows named parameters tag and sortField. It needed some adjustments to work well with TiddlySpace. ... mario [a] http://simplicity.tiddlyspace.com [1] http://simplicity.tiddlyspace.com/#NavigationMacroMP [2] http://a-pm.tiddlyspot.com/#NavigationPackage [3] http://a-pm.tiddlyspot.com/#SelectStoryTest%20SelectStoryMacro%20NavigationPackage%20StoryGlueMacro%20NavigationMacro -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Looping through a set of tiddler with prev and next buttons
Although going down quite a different road — a deliberately manual one — than the other solutions proposed yet, maybe PagrPlugin gives you what you want. Mentioned here at the bottom... http://tobibeer.tiddlyspace.com/#ShowDown ...the actual plugin being used here... http://markdowntutor.tiddlyspace.com/#Overview ...while actually provided here... http://markdowntutor.tiddlyspace.com/#PagrPlugin Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Looping through a set of tiddler with prev and next buttons
On Apr 27, 5:14 pm, Dani Zobin danizo...@gmail.com wrote: I would like to be able to loop through an ordered set of tiddler by seeing one tiddler at a time, and having prev and next buttons to navigate. Does anything like this exist? http://www.TiddlyTools.com/#FAQViewerPlugin enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR... http://www.TiddlyTools.com/#Donations Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.