\define get_recursive_field(note_title, field_name, calling_note:"")<!-- calling_note empty only for initial macro call --->
<$list filter="[<__note_title__>is[tiddler]first[]]" > <$list filter="[<__note_title__>get<__field_name__>first[]]" variable=field_value > <$list filter="[<__calling_note__>is[tiddler]first[]]"> <<field_value>> --- //from <$link to=<<__note_title__>> > ancestor </$link>// </$list> <$list filter="[<__calling_note__>!is[tiddler]first[]]"> <mark> ''<<field_value>>'' </mark> </$list> </$list> <$list filter="[<__note_title__>!has<__field_name__>first[]]" > <$list filter="[<__note_title__>prefix[so ]first[]]" > N.A. </$list> <$list filter="[<__note_title__>!prefix[so ]first[]]" > <$set name=new_list filter="[<__note_title__>tags[]prefix[no ]] [<__note_title__>tags[]prefix[so ]]" select="0"> <$macrocall $name=get_recursive_field note_title=<<new_list>> field_name=<<__field_name__>> calling_note=<<__note_title__>> /> </$set> </$list> </$list></$list>
\end
Agree with //<<currentTiddler>>// ?<$macrocall $name=get_recursive_field note_title=<<currentTiddler>> field_name=src_url />
Love the way you are thinking some of us have done similar things. I think it is as easy as anywhere to do this kind of thing. Of course it has its own complexity. I would look at solving component issues then bring them together in a solution.
I can help more later but consider a custom new here button which passes more to the child tiddler than a tag. Its easy to creat a tiddler with additional fields. I have posted on setting context before but a simple fieldname={{!!fieldname}} in the creat tiddler can do a lot.
I will see what other tips I can share when next at my desktop.
Regards
Tony
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6e270145-48cb-4e8b-88e5-df5226cb360a%40googlegroups.com.
\define each-other-level(filter)
<li><$link to=<<currentTiddler>> ><$text text=<<currentTiddler>>/></$link></li>
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
\end
\define first-level(filter)
<ul>
<$list filter="$filter$">
<<each-other-level $filter$>>
</$list>
</ul>
\end
Start in TableOfContents<br>
<$tiddler tiddler="TableOfContents">
<<first-level "[is[current]tagging[]]">>
</$tiddler>