Last request for the week!

98 views
Skip to first unread message

David Gifford

unread,
Dec 8, 2020, 12:47:25 PM12/8/20
to TiddlyWiki
Hi all

Would there be any way to hack $:/core/modules/utils/dom/modal.js so that it displays the caption if there is text in the caption field, and the title if there is no caption?

Also, I think this should be standard behavior in TiddlyWiki. Something for 5.1.24?

Blessings, Dave

Saq Imtiaz

unread,
Dec 8, 2020, 12:51:31 PM12/8/20
to TiddlyWiki
Set the subtitle to:

<$transclude field="caption">{{!!title}}</$transclude>

David Gifford

unread,
Dec 8, 2020, 2:02:02 PM12/8/20
to tiddl...@googlegroups.com
Hi Saq

I couldn't figure out where to insert that.

But I figured it out! I was using a plugin by Eric. I just changed subtitle to subtitle={{{ [[$tid$]get[caption]] }}}

Thanks and blessings.


--
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/O81S2xUL588/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/1628f7eb-202b-481b-98d3-ea7941b6e3e2n%40googlegroups.com.

Eric Shulman

unread,
Dec 8, 2020, 2:15:26 PM12/8/20
to TiddlyWiki
On Tuesday, December 8, 2020 at 11:02:02 AM UTC-8 David Gifford wrote:
But I figured it out! I was using a plugin by Eric. I just changed subtitle to subtitle={{{ [[$tid$]get[caption]] }}}

To get the results you want -- use caption with fallback to title -- you would write:

subtitle={{{ [[$tid$]get[caption]else[$tid$]] }}}

-e

David Gifford

unread,
Dec 8, 2020, 2:43:33 PM12/8/20
to tiddl...@googlegroups.com
Why, even better, Eric! Thank you!




--
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/O81S2xUL588/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

Donald Coates

unread,
Dec 8, 2020, 10:00:42 PM12/8/20
to TiddlyWiki
May I ask which plugin?

Eric Shulman

unread,
Dec 8, 2020, 10:27:36 PM12/8/20
to TiddlyWiki
On Tuesday, December 8, 2020 at 7:00:42 PM UTC-8 digit...@gmail.com wrote:
May I ask which plugin?

Not actually a "plugin"... but a showModal() macro definition:

-e


Reply all
Reply to author
Forward
0 new messages