Thanks for sharing,

I am still working on my edit-fields tools but you may like this macro, 
work in progress, With the icon field set allows you to select the image to 
place in the icon (or any other field)

\define 
edit-fields-image-picker(actions,filter:"[all[shadows+tiddlers]is[image]] 
[all[shadows+tiddlers]tag[$:/tags/Image]] -[type[application/pdf]] 
+[!has[draft.of]sort[title]]",subfilter:"")
<div class="tc-image-chooser">
<$vars state-system=<<qualify "$:/state/editFields-image-picker">>>
<$checkbox tiddler=<<state-system>> field="text" checked="show" unchecked=
"hide" default="hide"> Select Image</$checkbox>
<$reveal state=<<state-system>> type="nomatch" text="hide" default="hide" 
tag="div"><$macrocall $name="image-picker-list" filter="""$filter$""" 
actions="""$actions$"""/></$reveal>
</$vars>
</div>
\end

Then call with a field name in $field='icon'below
<$macrocall $name='edit-fields-image-picker' actions="<$action-setfield 
$field='icon' $value=<<imageTitle>>/>"/>



On Tuesday, July 10, 2018 at 1:12:01 AM UTC+10, talha131 wrote:
>
> Tony, I am sure you already know this, but anyone else, beginner like me, 
> this won’t work for core images
>
> <$image source={{!!title}} width=48></$image>
>
> See How to use core images with ImageWidget? 
> <https://groups.google.com/forum/#!topic/tiddlywiki/9MIBA63dk2o> for 
> details. 
>
> The final version of code that I used is
>
> ! Custom Images here
>
> <$list filter="[is[image]]" emptyMessage="None Found"><$image 
> source={{!!title}} width=48 />{{!!title}}<br/></$list>
>
> ! Core Images
> <$list filter="[all[tiddlers+shadows]prefix[$:/core/images/]]">
>  {{!!text}} {{$:/core/images/blank}} {{!!title}} <br/></$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/a83d2da0-6af8-451a-8aea-df1a18850844%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to