Field values and character formatting

I guess I need to follow the method outlined here: Displaying the caption instead of title in TW 5.2.1 using the new cascade filters

@Ant
So no misunderstanding, when you say ā€œtitleā€ are you referring to every occurrence of the title links, wherever they appear, or do you perhaps only mean what is displayed in enlarged letters at top of every tiddler?

Iā€™m now getting a little confusedā€¦ but I think I mean whatā€™s displayed at the top of every tiddler.

Having now tried this out, Iā€™m just getting the caption displayed, instead of the title, but with the markup showing rather than the effect of the markup. I also thought I could be clever and include a number of fields in the caption with {{!!field1}} {{!!field2}} etc. but that doesnā€™t work either. I guess Iā€™m doing it wrong but Iā€™m weary and my bed is callingā€¦ Iā€™ll have to think about this laterā€¦

Well, I was mostly asking so I didnā€™t misunderstand the discussion at hand. It is of course up to you what result youā€™re after.

One idea is to do your experimenting in a public dummy wiki, e.g on tiddlyhost.com so that others can see what exactly it is youā€™re doing. And once things are working, you just transfer the successful solutions to your real wiki.

Many thanksā€¦ Iā€™ll look into this and try to sort something outā€¦ I may be some timeā€¦

Ant,

Itā€™s possible to get the caption field to draw dynamically from other fields.

Check out this tiddler, and feel free to follow up with questions about how to get the links to behave as you like:

https://springerspandrel.github.io/tw/biblio-demo#Epictetus%2C%20Enchiridion

(Use the ā€œshow fieldsā€ control, on the sidebar [look for blinky-sun icon], to get quick edit-level access to fields, even in view mode.)

-Springer

That looks really helpful, thank you. Iā€™ve had to take a little time out and have other stuff I have to do in the next few days so itā€™ll probably be the week-end before I get back to TW things.

I did manage to sort out something on tiddlyhost.com but I need to do more testing before I make it public.

Take care.

Apologies for the delay in picking this up again. As the thread implies, Iā€™m interested in displaying a tiddler with a title/heading/whatever that can include character formatting.

Iā€™ve created a couple of similar TWs on tiddlyhost.com using different methods that summarise my ā€˜progressā€™ so far:

  1. https://compound-name.tiddlyhost.com/ ā€“ using the Uni-Link plugin
  2. https://compound-name2.tiddlyhost.com/ ā€“ using the method described at Displaying the caption instead of title in TW 5.2.1 using the new cascade filters

However, in my hands, neither are giving me the result I wantedā€¦ at a supermarket deli counter I once overheard an experienced member of staff say to a trainee ā€œā€¦ youā€™re doing it wrong and using the wrong machine ā€¦ā€. I think this is apt and applies to me and my attempts with TiddlyWiki.

Anthony

In the second method, It doesnā€™t work because view widget has return format by default, plain text. You could change the format but the superscript for some reason donā€™t work with this widget.

I donā€™t know if you need use the caption field. But you can do it only using the iupac_name using cascade filters, with a filter like this:

[has[iupac_name]then[title_iupac]]

It would be similar to your tiddler named ++ Display caption instead of title ++ in tags and fields.
Where title_iupac would be the tiddler where you have how can be display the title of tiddlers with iupac_name field. You can give it a better name, but then you have to remember change it in the filter.

In the content of your title_iupac you could have something like:

<h2 class="tc-title">{{!!iupac_name}}</h2>

Ant,

On your own demo site, if I open your shadow ViewTemplate for title ($:/core/ui/ViewTemplate/title), I get the effect you desire if I override it with the content of this tiddler (from my biblio site with mixed styles):

https://springerspandrel.github.io/tw/biblio-demo#%24%3A%2Fcore%2Fui%2FViewTemplate%2Ftitle

You should thus be able to get it to work with a cloned, modified version in your ViewTemplate if you donā€™t want to override the core (and avoiding such direct overrides is indeed the better practice).

@Springer gave me the hint for how to easy fix your problem in the 2nd method. Itā€™s just changing the view widget for the trasnclude widgets (you only need change the $view for $transclude).

Many thanks @Alvaro and @Springer for your input, Iā€™ll investigate both suggestions and see how it pans outā€¦ I guess they both have their pros and cons.
Take care,
Anthony