Only yesterday I discovered TiddlyWiki, so I'm totally new to this. Since the possibilities are limitless, or so it seems, I was wondering if someone can help me out with the following.
I would like to organize the tiddler's backlinks and display them sorted by subject.
I also would like to show the specific fragment (and nothing else) the link is refering to in the list
For example:
--Tiddler--
About Human Rights
--References/backlinks--
+ Legislation
Tiddler about art. A, law Z
(Art. A mentions -Human Rights-)
Tiddler about art. B, law Z
(This art. can also be used when conducting research about -human rights-)
+ Case Law
Tiddler about case H
(textfragment -human rights-)
Tiddler about case I
(textfragment -human rights-)
+Literature
Tiddler about book A
(textfragment -human rights-)
Tiddler about book B
(textfragment -human rights-)
I hope this (or something similar) is possible! Can someone help me out? :)
Thanks!
Willem
+ Case Law: <br><$list filter="[!is[system]all[current]backlinks[]!tag[hide]tag[caselaw]!tag[outlines]sort[title]] -[is[current]]"><$link><$view field="title"/></$link>
+ Literature: <br><$list filter="[!is[system]all[current]backlinks[]!tag[hide]tag[literature]!tag[outlines]sort[title]] -[is[current]]"><$link><$view field="title"/></$link>
<$list filter="[!is[system]all[current]backlinks[]!tag[hide]!tag[outlines]sort[title]] -[is[current]]"><$link><$view field="title"/></$link><span class="indent1"><$link><span class="graybox"><$transclude field="text" mode="block" /></span></$link></span></$list>
+ Case Law:<br/><$list filter="[!is[system]all[current]backlinks[]!tag[hide]!tag[outlines]tag[caselaw]sort[title]] -[is[current]]"><$link><$view field="title"/></$link><span class="indent1"><$link><span class="graybox"><$transclude field="text" mode="block" /></span></$link></span></$list><br/>+ Literature:<br/><$list filter="[!is[system]all[current]backlinks[]!tag[hide]!tag[outlines]tag[literature]sort[title]] -[is[current]]"><$link><$view field="title"/></$link><span class="indent1"><$link><span class="graybox"><$transclude field="text" mode="block" /></span></$link></span></$list>
\define list-backlinks(category)
<$set name="this-tiddler" value=<<currentTiddler>> >
<$list filter="[<currentTiddler>backlinks[]tag<__category__>last[]]">
<h3>''<<__category__>>''</h3>
</$list>
<$list filter="[<currentTiddler>backlinks[]tag<__category__>]">
<$link><<currentTiddler>></$link>
<$context term=<<this-tiddler>> />
</$list>
</$set>
\end
<hr>
<h2>''References''</h2>
<<list-backlinks category:"Case Law">>
<<list-backlinks category:"Legislation">>
<<list-backlinks category:"Literature">>
<$set name="this-tiddler" value=<<currentTiddler>> >
...the rest of your code...
</$set>
<$context term=<<this-tiddler>> length="50" />
.tw-context { font-family: Arial, Helvetica, sans-serif;}