Thank you, Op zaterdag 3 oktober 2020 om 13:40:23 UTC+2 schreef Eric Shulman:
> On Saturday, October 3, 2020 at 2:50:18 AM UTC-7, [email protected] > wrote: >> >> This shows the contents of a field: >> {{!! fieldname}} >> >> How to display the content of a field in the tiddler title? >> Can I use a code? >> > > The tiddler title is not just for display. The most important use of a > tiddler title as a UNIQUE identifier for the tiddler. > The title should *never* include anything that could be a computed piece > of text (such as a field reference). > > However... if you want to *display* something in place of the title that > *does* contain a field reference, then you can use the "caption" field to > specify the desired output. > For example, you could have a caption field that contains: "This is > {{!!somefield}}", or even "This is <<someMacro>>" > > Then, to substitute the "caption" in the tiddler ViewTemplate, you can > edit the $:/core/ui/ViewTemplate/title shadow tiddler, and replace this > line: > <$view field="title"/> > with: > <$transclude field="caption"><$view field="title"/></$transclude> > > Note that this has the potential to cause confusion since the "fake title" > (caption text) that appears in the tiddler display can be completely > different from the actual title field of the tiddler. > And you can even have more than one tiddler that uses the exact same > caption text, and thus will *appear* to have the same "fake title", even > though the actual tiddler titles are uniquely different from each other. > > Of course, it's up to you to use this modified tiddler display carefully > so as not to confuse yourself and especially anyone else that may be > viewing your TiddlyWiki. > > enjoy, > -e > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2343e7c1-530d-4a86-bcdc-ce077abdca33n%40googlegroups.com.

