\define tv-wikilink-tooltip()<$transclude field="tooltip"><$transclude field="text"/></$transclude>\endHere is a link to [[Title of Tiddler]] with a custom tooltip.
\define tv-wikilink-tooltip()<$transclude field="tooltip"><$transclude field="text"/></$transclude>\endHere is a link to [[Title of Tiddler]] with a custom tooltip.
Regards
Tony
1) I'm trying to achieve this but it makes saving incredibly slow and I can't even export my TW as a static website anymore.• When I transclude the title, it works fine:\define tv-wikilink-tooltip()<$transclude field="tooltip"><$transclude field="text"/></$transclude>\endHere is a link to [[Title of Tiddler]] with a custom tooltip.• But when I transclude the text, it just keeps on hanging:\define tv-wikilink-tooltip()<$transclude field="tooltip"><$transclude field="text"/></$transclude>\endHere is a link to [[Title of Tiddler]] with a custom tooltip.
The file I'm editing is a clone of $:/core/ui/ViewTemplate as I would like this change to work globally. Is there another way to go about this which wouldn't not let the whole thing hang every time I try to export it to a static website?
2) Ideally, I'd rather note transclude the whole content of the target Tiddler, just say the first 140 characters. Is there a way to achieve this with templates or tv-wikilink-tooltip Variable?
You can visit this website from your laptop and hover over "nebulosity" or "stance" until you see the tooltip to get an idea of what I'm trying to achieve.3) Has anyone implemented Tippy.js or similar to better style your tooltips, and in particular make them appear faster? I can't find anything in the official TW documentation.
Many thanks!--
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/d72c9294-010a-4000-b3c5-16c2fdd282cb%40googlegroups.com.
Hi Tony
> On 20 Apr 2020, at 12:49, TonyM <anthon...@gmail.com> 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) have such protections for recursive macros.
Best wishes
Jeremy.
>
> 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 tiddl...@googlegroups.com.
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)
If so, which tag should I use to target it?
It does work with just $:/tags/Macro but probably defeats the purpose.
Many thanks!Anne-Laure.
On Monday, April 20, 2020 at 1:02:53 PM UTC+1, Jeremy Ruston wrote:Hi Tony
> On 20 Apr 2020, at 12:49, TonyM <anthon...@gmail.com> 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) have such protections for recursive macros.
Best wishes
Jeremy.
>
> 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 tiddl...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7c7564ed-369f-4062-8d94-d3015fad032e%40googlegroups.com.
--
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/1fa406f3-9c31-4f73-98e2-6b737c0c7e85%40googlegroups.com.
\define folded-state()$:/state/folded/$(currentTiddler)$\end<main role="main" class="container"><div class="row"><div class="col-md-8 blog-main"><article class="blog-post"><h1 class="blog-post-title"><$view field="title"/></h1><$transclude mode="block"/></article><!-- /.blog-post --></div><!-- /.blog-main --><aside class="col-md-4 blog-sidebar"><div class="p-3 mb-3 bg-white rounded"><p class="text-secondary">Last edited <$view field="modified" format="date" template="DDth MMM YYYY"/></p><h3 class="mt-3">Backlinks</h3><<list-links filter:"[all[current]backlinks[]]+[!tag[hide]]+[!has[draft.of]]+[!is[system]sort[]]" class:"list-unstyled">></div></aside><!-- /.blog-sidebar --></div><!-- /.row --></main><!-- /.container -->
Hi Anne Laure
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1fa406f3-9c31-4f73-98e2-6b737c0c7e85%40googlegroups.com.
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/50f7c90d-fcf6-4301-ac32-60b24b265d3c%40googlegroups.com.
\define tv-wikilink-tooltip()<$transclude field="tooltip"><$transclude field="caption"/></$transclude>
\endHere is a link to [[Title of Tiddler]] with a custom tooltip.
\define save-tiddler-actions()<$action-sendmessage $message="tm-add-tag" $param={{{ [<newTagNameTiddler>get[text]] }}}/><$action-deletetiddler $tiddler=<<newTagNameTiddler>>/><$action-sendmessage $message="tm-add-field" $name={{{ [<newFieldNameTiddler>get[text]] }}} $value={{{ [<newFieldValueTiddler>get[text]] }}}/><$action-deletetiddler $tiddler=<<newFieldNameTiddler>>/><$action-deletetiddler $tiddler=<<newFieldValueTiddler>>/><$wikify name="tooltip" text={{!!text}}><$action-sendmessage $message="tm-add-field" $name="excerpt" $value={{{ [<tooltip>split[]first[120]join[]] }}} /></$wikify><$action-sendmessage $message="tm-save-tiddler"/>\end<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-edit-frame [<currentTiddler>is[tiddler]then[tc-tiddler-exists]] [<currentTiddler>is[missing]!is[shadow]then[tc-tiddler-missing]] [<currentTiddler>is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [<currentTiddler>is[system]then[tc-tiddler-system]] [{!!class}] [<currentTiddler>tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$fieldmangler><$vars storyTiddler=<<currentTiddler>> newTagNameTiddler=<<qualify "$:/temp/NewTagName">> newFieldNameTiddler=<<qualify "$:/temp/NewFieldName">> newFieldValueTiddler=<<qualify "$:/temp/NewFieldValue">>><$keyboard key="((cancel-edit-tiddler))" message="tm-cancel-tiddler"><$keyboard key="((save-tiddler))" actions=<<save-tiddler-actions>>><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]" variable="listItem"><$set name="tv-config-toolbar-class" filter="[<tv-config-toolbar-class>] [<listItem>encodeuricomponent[]addprefix[tc-btn-]]"><$transclude tiddler=<<listItem>>/></$set></$list></$keyboard></$keyboard></$vars></$fieldmangler></div>
data-tippy-content
--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/e6113f6f-37ff-4a26-8d2c-626ef8435480%40googlegroups.com.
\define HelpButton(label, ButtonText:?)^^(^^<$button popup="""$:/temp/popup/$(currentTiddler)$/$label$""" class='tc-btn-invisible tc-tiddlylink'> ^^$ButtonText$^^</$button>^^)^^<$reveal type='popup' state="""$:/temp/popup/$(currentTiddler)$/$label$"""> <div class='tc-drop-down' style='max-width:100%;white-space:pre-wrap;padding:10px;text-align:left;font-size:1.5em;border-radus:0.5em;' ><$transclude field="""$label$""" /></div></$reveal>\end
Usage:
```This adds a help button that looks like this<<HelpButton demo>>```
This adds a help button that looks like this<<HelpButton demo>>
```This adds a help button that looks like this<<HelpButton demo2 'why?'>>```
This adds a help button that looks like this<<HelpButton demo2 'why?'>>
Contents of the `demo` field: {{!!demo}}
Contents of the `demo2` field: {{!!demo2}}
You make a field for each label that contains the help information. This can have html and simple wikitext. Since it is a field linebreaks need to be added using html `<br>` tags.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/YaVbGH8S4_0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c6513ec0-6a74-48e1-8377-93d87300bdb3%40googlegroups.com.
Okay I think I'm done with this thing, working as I wanted it to :) Open this on your laptop and hover over any link to see what it looks like.
--
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/902d15ac-3e83-4a64-8a34-026cabeedc47%40googlegroups.com.
Could you send me a screenshot? I can't seem to be able to reproduce this 🤔Thank you!On Wed, 22 Apr 2020, 13:51 Mat, <matia...@gmail.com> wrote:Anne-Laure Le Cunff wrote:Okay I think I'm done with this thing, working as I wanted it to :) Open this on your laptop and hover over any link to see what it looks like.Overall good but when popup shows, it triggers the page scrollbar which in turn shifts the text to the left a "scrollbars width". My screen is such that the link is linebroken at :....the only way to learn in public is tobuild in public.<:-)
Could you send me a screenshot? I can't seem to be able to reproduce this 🤔