[TW 5.0.16]Footnote Popup Not Working

317 views
Skip to first unread message

Ken Gray

unread,
Sep 11, 2014, 1:49:54 PM9/11/14
to tiddl...@googlegroups.com
so I've been working with Danielo's PopupFootnotes and have them working except that the popup window doesn't work; it just puts the text right over whatever is there. 
anyone else figure this out with B16?
Thanks.

http://braintest.tiddlyspot.com/#PopupFootnotes:[[Welcome%20to%20my%20testing%20Brain!]]%20Index%20PopupFootnotes

Danielo Rodríguez

unread,
Sep 15, 2014, 5:48:12 AM9/15/14
to tiddl...@googlegroups.com
Probably is because the line:

tw-drop-down

try changing it to tc-drop-down. 

So the full code should look like:

define ref(label)
<$button popup="$:/state/$label$" class="btn-invisible tw-slider"><sup style="color:green">$label$</sup></$button>
\end

\define definition(label,text)
<$reveal type="popup" state="$:/state/$label$" animate="yes">
<div class="tc-drop-down">
<dl>
<dt>$label$</dt>
<dd>$text$</dd>
</dl>
</div>
</$reveal>
\end

\define footnote(label,text)
<<ref "$label$">>
<<definition "$label$" "$text$">>
\end

\define footnotes(label,text)
<<definition "$label$" "$text$">>
<sub><span style="color:green">$label$ : </span> $text$</sub>
\end

You should change the CSS also.It is contained on the popupStyle tiddler to look like:

.tc-drop-down dd { max-width:300px; word-break: break; white-space:normal; padding :0;}

tc-drop-down a {display:inline;padding:0}


Let me know about the experience.

Birthe C

unread,
Sep 15, 2014, 7:59:00 AM9/15/14
to tiddl...@googlegroups.com
Hi Ken Gray
Did you ad it to $:/core/ui/PageMacros? It might have been overwritten.

Also you have to change the code:

define ref(label)
<$button popup="$:/state/$label$" class="tc-btn-invisible tc-slider"><sup style="color:green">$label$</sup></$button>
\end

\define definition(label,text)
<$reveal type="popup" state="$:/state/$label$" animate="yes">
<div class="tc-drop-down">
<dl>
<dt>$label$</dt>
<dd>$text$</dd>
</dl>
</div>
</$reveal>
\end

\define footnote(label,text)
<<ref "$label$">>
<<definition "$label$" "$text$">>
\end

\define footnotes(label,text)
<<definition "$label$" "$text$">>
<sub><span style="color:green">$label$ : </span> $text$</sub>
\end


PopupStyle as Danielo wrote.

It seems to be working in my TW 5.0.17 now.



Birthe

Jeremy Ruston

unread,
Sep 15, 2014, 8:14:09 AM9/15/14
to TiddlyWiki
Hi BirtheC

Did you ad it to $:/core/ui/PageMacros? It might have been overwritten.

Since the introduction of global macros it is not recommended to modify the core shadow tiddler "$:/core/ui/PageMacros". Instead, place your macros in a new tiddler that is tagged $:/tags/Macros.




--
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com
Message has been deleted

Ken Gray

unread,
Sep 15, 2014, 9:22:18 AM9/15/14
to tiddl...@googlegroups.com
worked after I put in a leading "\" in your code above.

THANKS!  really like the popups!

Danielo Rodríguez

unread,
Sep 17, 2014, 12:36:27 PM9/17/14
to tiddl...@googlegroups.com
Glad you liked it.

All the plugin developers are waiting till the stable release of tiddlywiky. After that some adaptation work is required. So visit again my wiki at TiddlySpot.com in a month for an updated version of all my plugins.

RRegards

Jon

unread,
Oct 6, 2014, 5:22:02 AM10/6/14
to tiddl...@googlegroups.com, jeremy...@gmail.com

Danielo Rodríguez

unread,
Oct 6, 2014, 6:01:00 AM10/6/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Did you tagged it accordingly? 

Jon

unread,
Oct 6, 2014, 6:53:21 AM10/6/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Danielo,

Yes I followed the instructions and tagged it with $:/tags/Macros but no joy.

Jon

Uwe

unread,
Oct 6, 2014, 1:52:31 PM10/6/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi,

I think the joy comes, when you tag it with $:/tags/Macro

instead of $:/tags/Macros

Coincidentally I had the same problem a few minutes ago... ;-)

HTH

Greetings,

Uwe

Jon

unread,
Oct 6, 2014, 4:08:45 PM10/6/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Ah ha!

Yes, I am overjoyed!

Thanks, Jon.

oleghbond

unread,
Sep 13, 2018, 3:41:51 PM9/13/18
to tiddl...@googlegroups.com
Dear colleagues, 

Danielo's PopupFootnotes is very simple but very nice piece of work. I developed a bit Danielo's approach for several different types of text object: figures, formulas, references, etc.: see here http://bit.ly/2MvVR30.

However, the issue I encountered make all these useless. The only reasonable explanation I found is in the latest TW version - 5.1.17.

So, step by step I did the following:
  1. I installed clean TW 5.1.17 (empty html from https://tiddlywiki.com/#GettingStarted or node.js does not matter - the effect was the same);
  2. pulled two files from the source http://braintest.tiddlyspot.com/popupStyle and $:/macros/danielo/footNote.
  3. defined two tiddlers: the first one defines footnotes and references to them, and the second one defines references to the footnotes from the first tiddler.
The result had a defected look, namely: while the references in the first tiddler works fine, the references in the second tiddlers showed popup windows over the first tiddler but not over the second one as expected. 

The result one can see at the short video https://youtu.be/m8z4iDkmcgY.

I would be grateful for anyones assisstance in surpassing the issue.

Olegh

BurningTreeC

unread,
Sep 13, 2018, 10:23:19 PM9/13/18
to TiddlyWiki
Hi Olegh,

If you change the state="$:/state/..." in the ref_ macros and the definition macros to state="$:/state/$(currentTiddler)$/..." it should work

oleghbond

unread,
Sep 14, 2018, 3:19:35 AM9/14/18
to TiddlyWiki
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?



пʼятниця, 14 вересня 2018 р. 05:23:19 UTC+3 користувач BurningTreeC написав:

BurningTreeC

unread,
Sep 14, 2018, 5:49:33 AM9/14/18
to TiddlyWiki
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> 

oleghbond

unread,
Sep 14, 2018, 6:48:45 AM9/14/18
to TiddlyWiki
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 написав:

Danielo Rodríguez

unread,
Oct 8, 2018, 11:19:41 AM10/8/18
to TiddlyWiki

Hello,

Since I created this tool some other and probably better solutions have appeared. Have you tried any of the alternatives ? I don't know any of them by memory, but probably others do.

h0p3's Wiki

unread,
Oct 8, 2018, 1:33:33 PM10/8/18
to tiddl...@googlegroups.com
I've currently 1,997 footnotes using Danielo's tool in my wiki (thank you, Danielo, I use your wonderful tools every day). There's a better alternative? Please, someone, tell me. I don't know what it would look like. Perhaps not having to set both <<ref>> and <<footnotes>>, and instead having them automatically generated like M$Word would be pleasant. But, that might just be cosmetic.

On Mon, Oct 8, 2018 at 11:19 AM Danielo Rodríguez <rdan...@gmail.com> wrote:

Hello,

Since I created this tool some other and probably better solutions have appeared. Have you tried any of the alternatives ? I don't know any of them by memory, but probably others do.

--
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 post to this group, send email to tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages