Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-23 Thread Måns
Hi Stephan Great job! Brilliant :) Thank you very much! I tried to translate it into Danish in mtc2 http://xn--mns-ula.dk/mtc2/ - For some reason the previous variable stopped working. I can't see what I did wrong (have been staring at it for at least half an hour...) Cheers Måns

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-23 Thread Stephan Hradek
Sure! I added $:/core/modules/filters/previous.jshttp://m%C3%A5ns.dk/mtc2/#%24%3A%2Fcore%2Fmodules%2Ffilters%2Fprevious.jswhich you missed. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-23 Thread Måns
Hi Stephan Thanks. Now it works. Cheers Måns Mårtensson Den torsdag den 23. januar 2014 09.54.31 UTC+1 skrev Stephan Hradek: Sure! I added $:/core/modules/filters/previous.jshttp://m%C3%A5ns.dk/mtc2/#%24%3A%2Fcore%2Fmodules%2Ffilters%2Fprevious.jswhich you missed. -- You received this

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Måns
Hi Jeremy I want the previous next function only to be visible in relevant tiddlers. Now it is added to the viewtemplate of all tiddlers. Is there a hide- or showwhen function which will hide/show the navigation panel from tiddlers based on tags - or sth. like that...? Cheers Måns Mårtensson

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Jeremy Ruston
Hi Måns I want the previous next function only to be visible in relevant tiddlers. Now it is added to the viewtemplate of all tiddlers. Is there a hide- or showwhen function which will hide/show the navigation panel from tiddlers based on tags - or sth. like that...? Yes, although the syntax

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Måns
Hi Jeremy Great thanks. I use it like this: $list filter=[is[current]tag[Lektion1]] $list filter=[is[current]next[Lektion1]]/ / Forrige: $list filter=[is[current]previous[Lektion1]]/ /$list Will it be possible to define/use a custom viewtemplate at some stage? - like:

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Jeremy Ruston
Will it be possible to define/use a custom viewtemplate at some stage? - like: $:/tags/LessonViewTemplate No, that is not planned. TiddlyWiki5 tends to use configuration by tag, rather than configuration by title, as in TiddlyWiki Classic. The purpose of the change is to make it easier to

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Måns
Hi Jeremy TiddlyWiki5 tends to use configuration by tag, rather than configuration by title, as in TiddlyWiki Classic. The purpose of the change is to make it easier to blend and mix customisations. If we have fixed templates then it becomes impossible for another plugin to modify them except

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Måns
Hi Jeremy Let's say you have a tiddler called Lesson1 with the list field set to: [[First Bit]] SecondBit FinalBit Is it possible to use the list macro/widget-thingy to generate the list field value and sort by a second custom field value? like this: list: $list

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Stephan Hradek
Am Mittwoch, 22. Januar 2014 17:19:07 UTC+1 schrieb Måns: Is it possible to use the list macro/widget-thingy to generate the list field value and sort by a second custom field value? Should be possible. Give me an example Wiki and I'll try to create the proper code for you… -- You

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Måns
Hi Stephan I made two minimal test cases: 1) http://xn--mns-ula.dk/mtc2/ works with a hardcoded list of tiddlers as a value in the Navigation tiddler's list field. 2) http://xn--mns-ula.dk/mtc/ doesn't work with a list filter expression as a value in the Navigation tiddler's list field.

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Måns
Btw - The notification popup for saving the wiki throws errors - even if it does save back to the server... Den onsdag den 22. januar 2014 18.44.30 UTC+1 skrev Måns: Hi Stephan I made two minimal test cases: 1) http://xn--mns-ula.dk/mtc2/ works with a hardcoded list of tiddlers as a

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Stephan Hradek
I've created a Lesson2 and a tiddler ToC containing: $list filter=[tags[]prefix[Lesson]] ! $view field=title/ {{{ [tag{!!title}sort[number]] }}} /$list Does this help? -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Danielo Rodríguez
If you want the next button to not be displayed when no next tiddler just don't use a fixed string for next and previous. Use the widget link instead, and link to the variable that points to. $list $link to={{!!title}} Next /$link /$list I think that can work. -- You received this

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Stephan Hradek
If you want to create the list with a filter and select the previous and next from it, you need a modified next/previous filter function https://github.com/Jermolene/TiddlyWiki5/pull/357 -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Måns
Thanks Stephan Sorry I don't have a clue how to use the modified next/previous filter function I've put the simplest list filter tag expression (I could imagine) into the text value field for the custom field: list in the tiddler Lesson1. list: $list filter=[is[current]tag[Lesson1]

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Stephan Hradek
Done $list filter=[is[current]tag[Lesson1]] Next: $list filter=[tag[Lesson1]sort[number]next[]]/ / Previous: $list filter=[tag[Lesson1]sort[number]previous[]]/ /$list $list filter=[is[current]tag[Lesson2]] Next: $list filter=[tag[Lesson2]sort[number]next[]]/ / Previous: $list

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2014-01-22 Thread Stephan Hradek
SOLVED \define prevnext(lesson) Previous: $list filter=[tag[$lesson$]sort[number]previous[]]/ / Next: $list filter=[tag[$lesson$]sort[number]next[]]/ \end $list filter=[is[current]tags[]prefix[Lesson]] variable=lessonhr$macrocall $name=prevnext lesson=lesson//$list -- You received this

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-29 Thread James Weaver
On Friday, November 29, 2013 2:31:39 AM UTC-5, Jeremy Ruston wrote: Hi Jim We need a way for the reveal widget to hide or show content depending on whether a filter evaluates to zero or more entries. Is that something I can do through modifying the list filter, or would something

[tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-28 Thread PMario
On Thursday, November 28, 2013 2:53:24 AM UTC+1, James Weaver wrote: Thanks. Being new to this, I'm not sure what the best next step to take to implement David's ideas. For example, should I create a data twiddler that expresses the twiddlers that are in the desired path? You'll need to

[tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-28 Thread James Weaver
Thanks Mario! I plan on attending the upcoming google hangout by the way. @David: I'm interested in your thoughts/plans on the subject, so please do reply. Thanks, Jim On Thursday, November 28, 2013 9:43:24 AM UTC-5, PMario wrote: On Thursday, November 28, 2013 2:53:24 AM UTC+1, James

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-28 Thread Jeremy Ruston
The next and previous filters that David wrote are now in the core, and so are available to use. They work in association with the 'list' field, which is interpreted as a space-separated list of tiddler titles (using double square brackets to quote titles that contain a space). The next and

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-28 Thread Eric Shulman
On Thursday, November 28, 2013 8:02:18 AM UTC-8, Jeremy Ruston wrote: The next and previous filters that David wrote are now in the core, and so are available to use. They work in association with the 'list' field, which is interpreted as a space-separated list of tiddler titles (using

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-28 Thread Jeremy Ruston
Hi Eric There are some error use cases I wonder about: Let's say you have a tiddler called Lesson1 with the list field set to: [[First Bit]] SecondBit FinalBit You'll also need to create the named tiddlers. What happens if a tiddler named in the list does not exist? Nothing; the tiddlers

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-28 Thread James Weaver
Thanks Jeremy, et al., for your help. This indeed works (see attached screenshot) and I'd like to ask a couple more questions (see inline). Thanks again, Jim Weaver On Thursday, November 28, 2013 12:43:25 PM UTC-5, Jeremy Ruston wrote: Hi Eric There are some error use cases I wonder about:

Re: [tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-28 Thread Jeremy Ruston
Hi Jim We need a way for the reveal widget to hide or show content depending on whether a filter evaluates to zero or more entries. Is that something I can do through modifying the list filter, or would something need to be modified in the core? Adding that variant of the reveal widget

[tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-27 Thread PMario
I think TiddlyWiki5 will work perfectly well for your usecase. David Johnston did some filter extensions, that may be interesting. See his introduction at http://www.youtube.com/watch?feature=player_detailpagev=DZiU4uSGFnQ#t=355 Since Jeremy did some refactoring, David will need to make some

[tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-27 Thread PMario
this may be interesting too: http://www.youtube.com/watch?feature=player_detailpagev=DZiU4uSGFnQ#t=2657 -m -- 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

[tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-27 Thread James Weaver
Thanks. Being new to this, I'm not sure what the best next step to take to implement David's ideas. For example, should I create a data twiddler that expresses the twiddlers that are in the desired path? Regards, Jim On Wednesday, November 27, 2013 7:03:25 PM UTC-5, PMario wrote: this may

[tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-27 Thread Eric Shulman
On Wednesday, November 27, 2013 5:53:24 PM UTC-8, James Weaver wrote: ...twiddler ... twiddlers Just a (very) minor note... it's tiddler and tiddlers ... no W. Welcome to the community! :) enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios EVERY DONATION IS IMPORTANT! HELP ME TO

[tw] Re: Defining navigation paths in TiddlyWiki5

2013-11-27 Thread James Weaver
Thanks Eric. Any thoughts on my next step question? Regards, Jim On Wednesday, November 27, 2013 9:29:39 PM UTC-5, Eric Shulman wrote: On Wednesday, November 27, 2013 5:53:24 PM UTC-8, James Weaver wrote: ...twiddler ... twiddlers Just a (very) minor note... it's tiddler and tiddlers