For some reason I could make my OP with an attachment, so here is the code 
from the tid file. Just create a tiddler and copy it in.

\define showAncestors()
<$list filter="[enlist<mylist>first[]]">
    <ul><li>
<$list 
filter="[<currentTiddler>!match<bottom-tiddler>then<currentTiddler>]">
<$list filter="[<currentTiddler>has[parent]then{!!text}else{!!title}]">
<<currentTiddler>>
</$list>
</$list>
<$list filter="[<currentTiddler>match<bottom-tiddler>]">
<$vars 
question={{{ [{!!text}splitbefore[::]addprefix['']addsuffix['']] }}}>
<<question>>
</$vars>
</$list>
    <$set name="mylist" filter="[enlist<mylist>rest[1]]">
            <<showAncestors>>
    </$set>
    </li></ul>
</$list>
\end

\define getAncestors()
<$list filter="[all[current]get[parent]!is[blank]]" emptyMessage="""<$set 
name="mylist" 
filter="[enlist<mylist>reverse[]]"><<showAncestors>></$set>""">
    <$set name="mylist" filter="[enlist<mylist>] [<currentTiddler>]">
            <<getAncestors>>
    </$set>
</$list>
\end

\define thing()
<$set name="mylist" filter="[<currentTiddler>]">
<$vars bottom-tiddler=<<currentTiddler>> >
<<getAncestors>>
</$vars>
</$set>
\end

<$list filter="[search:text[::]!is[system]!<currentTiddler>]">
<$macrocall $name=rememberq id={{!!created}}
question=<<thing>>
answer={{{ [<currentTiddler>get[text]split[::]last[]] }}}
/>
</$list>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/753ba693-b43b-491f-8ebf-b4b0f9e10a1cn%40googlegroups.com.

Reply via email to