Hi S.S.

Thank you for pointing out the weaknesses (and strengths) of my 
suggestions! That led me to the following hack: 

<$link tooltip={{!!title}}><$transclude field="caption"><$view 
field="title"/></$transclude>&nbsp;</$link>

The non breaking space &nbsp; makes sure that I can see the link in my 
list, even if it contains no text.

Have a great weekend!
Thomas

Am Samstag, 5. Januar 2019 07:39:38 UTC+1 schrieb S. S.:
>
> 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 been 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/ee2f63fc-e434-42ca-b9a5-5bbdffbaa3fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to