My project: travel places manager
Note: I chose not to use tags to manage these hierarchies because they would become too many
I collected data on a lot of city: but p.e. I can use : Alessandria coming to have the following Tiddlers:
Alessandria - Area Sosta Via Circonvallazione
Alessandria - Castello di Piovera
Alessandria - Marengo Museum
Alessandria - museo Città delle biciclette
Alessandria - museo civico Palazzo Cuttica
Alessandria - museo della maschera
Alessandria - museo Gambarina
Alessandria - Teatro delle Scienze
Alessandria - Castello di Piovera - info
Alessandria - Marengo Museum - info
Alessandria - museo Città delle biciclette- info
Alessandria - museo civico Palazzo Cuttica- info
Alessandria - museo della maschera - Info
Alessandria - museo Gambarina - Info
Alessandria - Teatro delle Scienze - Info
Some are taggeg (luogo) and usually the " - Info" tiddler are non tagged.
I have a tiddler taggedo $:/tags/ViewTemplate where I have:
\define viewInfoLuogo()
<table>
<tr>
<td>{{!!nazione}}</td>
<td>{{!!provincia}} - <$transclude tiddler=DT-Provincie index={{!!provincia}} /></td>
<td>{{!!subtitle}}</td>
</tr>
</table>
{{!!description}}
\end
\define RootBrother()
<<list-links
filter:"[prefix[$(filtro)$]]">>
\end
<$list filter="[all[current]tag[luogo]]">
<<viewInfoLuogo>>
<$set name="filtro" value={{!!title}}>
<<RootBrother>>
</$set>
</$list>
The output is correct, but… what I couldn’t do:
-
remove the link to the current tiddler (it is redundant)
-
add a link to the root tiddler.
Any suggestions to achieve this result?
I also appreciate tips on how to simplify the code… or macro and plugin that do the same job and that I have not been able to find.
Thanks.