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 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. 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/928463cf-60bb-4a3a-8826-63d7b1dda2c5o%40googlegroups.com.

