Great, glad it's going well.

Best wishes

Jeremy


On Sat, Nov 30, 2013 at 3:34 PM, James Weaver <[email protected]>wrote:

> Brilliant!  Works very well (see attached screen shots).
>
> Thanks,
> Jim
>
>
> On Saturday, November 30, 2013 5:09:44 AM UTC-5, Jeremy Ruston wrote:
>
>> You can use a useful little trick to do this. The trick is that we can
>> abuse the list widget into behaving like the reveal widget except that the
>> condition for display is whether a filter returns any results or not.
>>
>> The idea is to take advantage of the fact that the template of the list
>> widget is rendered 0 or more times, depending on the number of items in the
>> list. We can limit the number of results returned from a filter with the
>> [limit[n]] filter operator. So, we can make filters that return 0 or 1
>> renderings of the template, just like the reveal widget.
>>
>> <$list filter="[is[current]next[Lesson1]limit[1]]" variable="listItem">
>> Next: <$list filter="[is[current]next[Lesson1]]"/>
>> </$list>
>>
>> <$list filter="[is[current]previous[Lesson1]limit[1]]"
>> variable="listItem">
>> Previous: <$list filter="[is[current]previous[Lesson1]]"/>
>> </$list>
>>
>> If the list filter doesn't return any results then the list template
>> isn't rendered at all.
>>
>> Setting the attribute variable to "listItem" prevents the default
>> behaviour of setting the currentTiddler variable to the title of each list
>> item, so that the current tiddler within the template is the same as that
>> of the list filter itself.
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>> On Fri, Nov 29, 2013 at 2:06 PM, James Weaver <[email protected]>wrote:
>>
>>> I used the instructions given to me in a another thread to create a
>>> navigation path through a set of tiddlers.  I then repeated those
>>> instructions with another set (see attached screen shots of Lesson2 and
>>> Navigation2 tiddlers).  The result is that there are indeed two navigation
>>> paths, but there are now two sets of navigation labels (see attached screen
>>> shot).  Is there a workaround, or is a fix dependent upon the modification
>>> to the core that hides navigation labels for which there isn't an
>>> associated link?
>>>
>>> Thanks,
>>> Jim
>>>
>>> --
>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to