CamelCase titles are useful for linking among other things, but it’s not pretty. Thanks to the new cascade filters, it is now very easy to display a “pretty text” instead of the title !
In a tiddler tagged with $:/tags/ViewTemplateTitleFilter
and the field list-before
set to $:/config/ViewTemplateTitleFilters/default
:
[<currentTiddler>has[caption]then[$:/ui/ViewTemplate/title/useCaption]]
And in the tiddler $:/ui/ViewTemplate/title/useCaption
:
\whitespace trim
<h2 class="tc-title">
<$view field="caption"></$view>
</h2>
That’s it !