~hokiegeek/tw5-checklist

ref: 39a69fa600872d2678080a4d35c6aa6e5ac60789 tw5-checklist/ShoppingList/item_view.tid -rw-r--r-- 769 bytes
39a69fa6HokieGeek Added ability to link to an image when a "source" field is also provided 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
modified: 20191028002304000
created: 20190501003416000
creator: hokiegeek
title: $:/plugins/hokiegeek/checklist/ShoppingList/Item/View
tags: $:/tags/ViewTemplate
type: text/vnd.tiddlywiki

<$list filter="[all[current]is[tiddler]!is[system]tag{$:/plugins/hokiegeek/checklist/ShoppingList/config/Item/tag}]">
<$reveal type='nomatch' state='!!source' text=''>
    <$reveal type='nomatch' state='!!image' text=''>
        <a href={{!!source}}>
            <$image source={{!!image}} width="auto" class="darkBorder" /><br/>
        </a>
    </$reveal>
</$reveal>
<$reveal type='match' state='!!source' text=''>
    <$reveal type='nomatch' state='!!image' text=''>
        <$image source={{!!image}} width="auto" class="darkBorder" /><br/>
    </$reveal>
</$reveal>
</$list>