Not clear what shall be done. My excuse is that I'm not a certified programmer. Although I can guess that the core template $:/core/ui/PageTemplate already contains the necessary code:
<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]"> I'd like to remind that in TW 5.1.4 everything works just fine. So, what's the difference between 5.1.4 and 5.1.17? пʼятниця, 14 вересня 2018 р. 12:49:33 UTC+3 користувач BurningTreeC написав: > > 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/aa6f5f77-3ef8-4995-9e85-7e2770eebe54%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

