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:
- https://compound-name.tiddlyhost.com/ ā using the Uni-Link plugin
- 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
).