Hi Magnus

> If field "temp" has value "warm" I'd like to have the image "sun.svg" to
show. Would it be possible to do that?

Create a new tiddler with the tag `$:/tags/ViewTemplate` and the content:

<$reveal type="match" state="!!temp" text="warm">
[img[sun.svg]]
</$reveal>

The example assumes that your "sun.svg" image is stored in a tiddler of
that name with the content type image/svg+xml

Best wishes

Jeremy.



On Sun, Feb 15, 2015 at 9:05 PM, Stephan Hradek <[email protected]>
wrote:

>
>
> Am Sonntag, 15. Februar 2015 21:41:08 UTC+1 schrieb magev958:
>>
>> If field "*temp*" has value "*warm*" I'd like to have the image "
>> *sun.svg*" to show. Would it be possible to do that?
>>
>
> There are multiple ways how to achieve that. You could use the reveal
> widget <http://tiddlywiki.com/#RevealWidget> or you could create a tidler
> "warm" which contains {{sun.svg}} and simply transclude using <$transclude
> tiddler={{!!temp}}/>
>
> Example: Go to http://tiddlywiki.com/
>
> Create a tiddler "warm" and make its content be {{Motovun Jack.svg}} ->
> See the picture of a cat appear.
>
> Create a tiddler "cold" and make its content be {{Tiddler Fishes.svg}} ->
> See the picture of some fishes appear
>
> Create a new tiddler and make its content be <$transclude
> tiddler={{!!temp}}/>
> Additionally give it a field "temp" containing "warm" as a value. -> See
> the picture of the cat appear again.
> Change the value of temp to "cold" ynd the fishes will be displayed.
>
>
>
>
> --
> 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 http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to