On Thursday, September 24, 2020 at 2:11:08 AM UTC-7, imleg...@gmail.com 
wrote:
>
> Here is the filter I use
> <$list filter="[prefix[Excel]tag[kp]]">
>    <h2><$link /></h2>
> </$list>
> Some of the tiddlers selected with icon field set.  So the tiddler itself 
> with a icon ahead.  Like the image shown. I want the icon shown in the list 
> result how to make it?
>

The icon field should contain either A) the name of an image tiddler, or B) 
a URL to an externally-stored image
To show this image, use the $transclude widget, like this:
<$list filter="[prefix[Excel]tag[kp]]">
   <h2><$transclude tiddler={{!!icon}}/><$link /></h2>
</$list>

Note: if you want the image to be included in the link, then write it this 
way:
<$list filter="[prefix[Excel]tag[kp]]">
   <h2><$link><$transclude tiddler={{!!icon}}/><$text 
text={{!!title}}/></$link></h2>
</$list>


enjoy,
-e

 
 

>  [image: 无标题.png]
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6bc44264-dcbd-4ac7-9d94-315f24f79257o%40googlegroups.com.

Reply via email to