Re: [tw5] Transclude tiddler body in tooltip

2020-04-21 Thread 'Peter Buyze' via TiddlyWiki
A useful plug-in indeed. Nevertheless, when I hover over an internal link, the plug-in gives a preview but it is not in a distinct, well-readable floating box, rather it is transparent with the original tiddler's text visible. 20 Apr 2020, 22:03 by alecu...@gmail.com: > I found > this

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Saq Imtiaz
Once you have those three tiddlers in your TiddlyWiki, save and reload. Add the macro from "For the view template" to the top your view template tiddler. - Now everytime you edit and save a tiddler, the excerpt field will be auto-populated. - The macro in the view template will help generate

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
You should get some sleep! :) I'm super grateful for your help, thank you! On Tuesday, April 21, 2020 at 12:17:59 AM UTC+1, Saq Imtiaz wrote: > > I am running on not much sleep which probably isn't helping with writing > the most coherent explanations :) > > Have a look at

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Saq Imtiaz
I am running on not much sleep which probably isn't helping with writing the most coherent explanations :) Have a look at https://saqimtiaz.github.io/sq-tw/tooltips-tippyjs.html Of the open tiddlers examine and import to your TW the following (after backing up your data).

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
(just wanted to add I managed to reverse the changes back so there's no rush) On Tuesday, April 21, 2020 at 12:07:25 AM UTC+1, Anne-Laure Le Cunff wrote: > > Thanks Saq! I probably didn't understand step 2 properly, since this is > what I get when I click the "+" to create a new tiddler: > >

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
Thanks Saq! I probably didn't understand step 2 properly, since this is what I get when I click the "+" to create a new tiddler: [image: Screenshot 2020-04-21 at 12.05.40 AM.png] On Monday, April 20, 2020 at 11:57:44 PM UTC+1, Saq Imtiaz wrote: > > Anne-Laure: No. Create a new tiddler with any

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Saq Imtiaz
Anne-Laure: No. Create a new tiddler with any title (e.g MyCustomEditTemplate) , and paste the contents I provided into it. No tag needed. Step 2, where we edit $:/config/ui/EditTemplate and replace the contents with the title you used in Step 1 (MyCustomEditTemplate), tells TiddlyWiki to use

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
Hi Saq, Thanks so much for this! Sorry for the newbie question, but can you confirm creating an Edit Template consists in tagging the Tiddler with $:/tags/EditTemplate ? Thank you! Anne-Laure. On

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Saq Imtiaz
Try the following: 1) Backup your data, this is untested. 2) Save this as a custom Edit Template, say with title MyEditTemplate: \define save-tiddler-actions() <$action-sendmessage $message="tm-add-tag" $param={{{ [get[text]] }}}/> <$action-deletetiddler $tiddler=<>/> <$action-sendmessage

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
@Saq - thank you for confirming! Didn't realise these were generated on demand. That explains why it doesn't work with the static website. @Diego - totally missed that previous message. Thank you! Yes this is exactly what I want. So, just to recapitulate where I'm at, I used a couple of

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Diego Mesa
Anne-Laure, For reference/completion, Tobi Beer's plugin was also the solution I proposed in this thread you started about "how to show link preview on hover in static websites" not that long ago: https://groups.google.com/d/msg/TiddlyWiki/_7ozNvkpPVg/vHXL1Ae4AgAJ Diego On Monday, April 20,

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Saq Imtiaz
The source code of that plugin has been compressed and obfuscated, however I suspect it calculates and renders the preview on demand, i.e. when you hover over a link. That won't work when exported to a static website, unless there is javascript library that we can drop in that can do the same

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
I found this amazing plugin by Tobi Beer which does almost exactly what I want — thanks Yoni for sharing the link! Does anyone have a guide / any clue as to how the same behaviour could be preserved when exporting to a static website? (I have

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
That's a great idea, thank you! On Monday, April 20, 2020 at 3:18:08 PM UTC+1, Saq Imtiaz wrote: > > If you would like to automate generating the caption, perhaps look into > generating and saving and excerpt in the caption field when a tiddler is > saved? -- You received this message because

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Saq Imtiaz
If you would like to automate generating the caption, perhaps look into generating and saving and excerpt in the caption field when a tiddler is saved? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Jeremy Ruston
Hi Anne-Laure, OK, that is indeed a custom view template, and it doesn’t include support for $:/tags/Macro/View. If you wanted to, you could add this as the first line of the tiddler: \import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]] Best wishes Jeremy. > On 20 Apr 2020,

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Anne-Laure Le Cunff
Hi Jeremy, No, I used this tutorial as I'm using TW as a static website generator, so my clone looks like this: *\define folded-state()* *$:/state/folded/$(currentTiddler)$* *\end* ** * * ** * * *<$view field="title"/>* *<$transclude

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Jeremy Ruston
Hi Anne Laure > I created a macro but $:/tags/Macro/View doesn't work - is it because I'm > using a clone of the core view template? > ($:/ness_labs/template/static-view-template) That’s strange. Does your clone still include the line "\import

Re: [tw5] Transclude tiddler body in tooltip

2020-04-20 Thread Jeremy Ruston
Hi Tony > On 20 Apr 2020, at 12:49, TonyM wrote: > > The transclude text is transcluding the current tiddlers text which > transcludes the current tiddlers text to infinity TiddlyWiki does in fact have built-in protection against infinitely recursive transclusion loops. It doesn’t (yet)

[tw5] Transclude tiddler body in tooltip

2020-04-20 Thread TonyM
The transclude text is transcluding the current tiddlers text which transcludes the current tiddlers text to infinity 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