>
> Thanks a lot, BurningTreeC,
>
> I did as you recommended:
>
> \define ref_r(label)
> <$button popup="$:/state/$(currentTiddler)$/r_$label$" 
> class="tc-btn-invisible 
> tc-slider">[<span style="color:blue">$label$</span>]</$button>
> \end
>
> \define definition_r(label,text)
> <$reveal type="popup" state="$:/state/$(currentTiddler)$/r_$label$" 
> animate="yes">
> <div class="tc-drop-down">
> <dl>
> <span style="color:lightgrey;">Посилання</span>
> <dt>$label$</dt>
> <dd>$text$</dd>
> </dl>
> </div>
> </$reveal>
> \end
>
> \define caption_r(label,text)
> <<ref_r "$label$">>
> <<definition_r "$label$" "$text$">>
> \end
>
> \define captions_r(label,text)
> <<definition_r "$label$" "$text$">>
> [<span style="color:blue">$label$</span>] $text$
> \end
>
> It works for a single tiddler, when definition and reference are located 
> together say in tiddler 1:
>
> Caption definition <<captions_r "34" "askaskadsk asdsadasdsa">>
>
> Reference to the caption <<ref_r "34">>
>
> However, when then I put reference into other tiddler 2 - it does not 
> reveal the reference windows:
>
> Reference to the caption <<ref_r "34">> from another tiddler
>
> Then after I changed your suggested construction from /$(currentTiddler)$ 
> to /$<currentTiddler>$, it started working though incorrectly as I 
> described from the very beginning in https://youtu.be/m8z4iDkmcgY.
>
> Any other ideas?
>
>
>
maybe if you tag all tiddlers with definitions in them with "Definition" 
you could add an <$importvariables> widget to your body-viewtemplate

<$importvariables filter="[all[tiddlers]tag[Definition]]">

tiddler body 

</$importvariables> 

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/42196b0c-197d-4e32-86bc-edd364e38270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to