I'm trying to, well, here's the code:
A > I define a macro fpnl (eventually, first previous next last) that accepts a tiddler (usually, <<currentTiddler>> and a field that has a value
B > I am trying to generate a link to the first & last & next & previous tiddler that shares the value on the specified field with the currentTiddler
C > right now, I can not get the list filter to work with the field and value variables. Obviously, my mistake is in the filter line (between 3 & 4 below). I've tried:
[field:$field$<fieldvalue>]
[field:$field$[<fieldvalue>]]
[field:$field$[<<fieldvalue>>]]
Any suggestions?
\define fpnl(tiddler field)
1 tiddler: <<currentTiddler>><br>
2 field: $field$<br>
<$set name="fieldname" value=$field$>
<$set name="fieldvalue" value="<$view field=$field$/>">
3 value of $field$: <<fieldvalue>><br>
<$list filter="[field:$field$[<fieldvalue>]]">
4 <<currentTiddler>><br>
</$list>
</$set></$set>
\end
<$macrocall $name="fpnl" tiddler=<<currentTiddler>> field="season"/>
``(with current tiddler having field season=winter)
``
Thanks,
//steve.