Hi Thomas,
I still can't find a better way than:
<$list filter="[all[current]has[caption]]"
emptyMessage="""<$view field="title"/>""">
<$transclude field="caption"/>
</$list>
The problem with the below is that if there *is* a caption field, but it is
empty, nothing will show. I find that unacceptable. This was the exact
issue I tried to have fixed
<https://github.com/Jermolene/TiddlyWiki5/issues/3624> (on github) but that
hasn't be resolved because of possible performance issues in a large table
of contents.
<$transclude field="caption"><$view field="title"/></$transclude>
The problem with the next one below is that it does not apply wikitext
formatting - for example if the caption is: πr^^2^^
<$view field="caption" format="plainwikified"><$view field="title"
format="text" /></$view>
It would be nice if the issue could solved somehow, perhaps by adding a*
format="wikified"* for the $view widget.
Regards.
On Saturday, January 5, 2019 at 6:27:23 AM UTC+7, Thomas Elmiger wrote:
>
> And one more, this one omits automatic linking to CamelCase captions:
>
> <$view field="caption" format="plainwikified"><$view field="title"
> format="text" /></$view>
>
> Have fun,
> -t
>
> Am Freitag, 4. Januar 2019 23:49:29 UTC+1 schrieb Thomas Elmiger:
>>
>> Hi folks,
>>
>> ... the *caption* field is generally wikified (and so can include
>>>> formatting etc.) while the *title* is rendered as plain text.
>>>
>>>
>> An even shorter solution for this:
>>
>> <$transclude field="caption"><$view field="title"/></$transclude>
>>
>> Thanks for the hints!
>> Thomas
>>
>> <$list filter="[all[current]has[caption]]"
>>> emptyMessage="""<$view field="title"/>""">
>>> <$transclude field="caption"/>
>>> </$list>
>>>
>>>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/566505aa-3d2f-488b-8862-5648cefae9a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.