Title Hierarchy and brothers list how to?

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.

I am not sure I have completely grasped the structure but try this:

\define viewInfoLuogo()
<table>
<tr>
<td>{{!!nazione}}</td>
<td>{{!!provincia}} - <$transclude tiddler=DT-Provincie index={{!!provincia}} /></td>
<td>{{!!subtitle}}</td>
</tr>
</table>
{{!!description}}
\end

<$list filter="[all[current]tag[luogo]]">
     <<viewInfoLuogo>>
    <<list-links 
    filter:"[prefix<currentTiddler>] :except[<currentTiddler>]">>
</$list>

Is the root tiddler Alexandria? Is it tagged luogo, or do we need to figure out what it is from the names of the tiddlers? If the latter, you want something like:

<$link to="[<currentTiddler>split[-]first[]trim[]"/>

Yes the root tiddler is Alessandria and is tagged luogo.

I’ve missed the " :except" in the documentation of Tiddlywiki.

Thanks.