I found the next and previous filter function and did not understand them 
at first.

Looking at the code it seems it's expenting as the operand a name of a 
tiddler which has to have a list field which defines a "story". It is then 
selecting for every tiddler in the current set of tiddlers that tiddler 
which follows in the story list.

So for this to work, one needs to manually create a story list, which might 
be useful in some cases.

But what I *thought *"next" and "previous" would do is: They select for the 
current tiddler the one which follows in the current set of tiddlers.

Let me give you an example:

On tw5magick.tiddlyspot.com I once showed how to create a simple quiz. Now 
it would be nice to be able to link from every question to the next anf to 
the previous question. With the current set of features it does not seem to 
be possible to do this automatically, but it would be possible with my 
understanding of "next" and "previous". So what I did now is to enhance 
both functions. 

With this code it is now possible to create my linkage (code indented for 
readability):

<$list filter="[is[current]tag[Quiz]]">
    <hr>
    <$list filter="[tag[Quiz]previous[]]">
        Back to <$link>
            <$view field="title"/>
        </$link>
        <br>
    </$list>
    <$list filter="[tag[Quiz]next[]]">
        Next <$link>
            <$view field="title"/>
        </$link>
    </$list>
</$list>

As you can see, I create the current set of tiddlers with tag[Quiz] and 
filter then for the next or previous tidler with next[] and previous[].

The functionality of "next" and "previous" remains unchanged when there is 
an operand.

Especially @Jeremy: Do you think this is useful?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to