Hi Matabele

I forgot to mention that you also gave me the option to use a new tiddler 
button to create new quizzes with predefined fields (incl. tags): 

<$setfield set="!!skift" setTo="1">
<$setfield set="!!6" setTo="Word 6">
<$setfield set="!!5" setTo="Word 5">
<$setfield set="!!4" setTo="Word 4">
<$setfield set="!!3" setTo="Word 3">
<$setfield set="!!2" setTo="Word 2">
<$setfield set="!!1" setTo="Word 1">
<$setfield set="!!text" setTo="Choose a number. Click on it to reveal a word 
from a verse line. Guess what song it is - or sing another one whych uses that 
exact word." >
<$maketid  title="Sang" tags="sang" edit="show" message="tw-set-field">
<$button message="tw-new-tiddler">New song [img width=16 class="tw-image" 
[$:/favicon.ico]]</$button>
</$maketid>
</$setfield>
</$setfield>
</$setfield>
</$setfield>
</$setfield>
</$setfield>
</$setfield>
</$setfield>

Thank you again, again :-)

Cheers Måns Mårtensson

Den torsdag den 29. maj 2014 21.55.15 UTC+2 skrev Måns:
>
> Hi Matabele
>
> You solved all my problems - Thank you very much :-)
>
> 1) Setting states to fields in current tiddler lets me have individual 
> control with the state of every button in every individual tiddler.
>
>
>
> 2) Your setfield widget makes it possible to set all fields at once.
> My quiz consists of buttons which reveals words when you click on them.
> Now it's possible to open all at once or close all at once :-) GREAT!!
>
> I changed your demo-button and put it in my "song-skeleton/template" like 
> this:
>
> <$reveal type="nomatch" state="!!state1" state="!!state2" state="!!state3" 
> state="!!state4" state="!!state5" state="!!state6" text="show">
> <$setfield set="!!state6" setTo="show">
> <$setfield set="!!state5" setTo="show">
> <$setfield set="!!state4" setTo="show">
> <$setfield set="!!state3" setTo="show">
> <$setfield set="!!state2" setTo="show">
> <$button  set="!!state1" setTo="show" message="tw-set-field">Show all 
> words</$button></$setfield></$setfield></$setfield></$setfield></$setfield>
> </$reveal>
> <$reveal type="match" state="!!state1" state="!!state2" state="!!state3" 
> state="!!state4" state="!!state5" state="!!state6" text="show">
> <$setfield set="!!state6" setTo="hide">
> <$setfield set="!!state5" setTo="hide">
> <$setfield set="!!state4" setTo="hide">
> <$setfield set="!!state3" setTo="hide">
> <$setfield set="!!state2" setTo="hide">
> <$button set="!!state1" setTo="hide" message="tw-set-field">Hide all 
> words</$button></$setfield></$setfield></$setfield></$setfield></$setfield>
> </$reveal>
>
>
> It was basically a trial/error process on my part - don't know if it could 
> have been written with less code? Point is: IT WORKS :-)
>
> Thank you again Matabele - You saved my day :-)
>
> Cheers Måns Mårtensson
>
>
> Den torsdag den 29. maj 2014 10.55.20 UTC+2 skrev Matabele:
>>
>> Hi Mans
>>
>> Putting things together -- try this on: http://gwiz.tiddlyspot.com/
>>
>> <$reveal type="nomatch" state="!!state1" text="show">
>> <$fieldset tiddler="other-target"  set="!!text" setTo="2">
>> <$setfield tiddler="target" set="!!text" setTo="your-content">
>> <$button  set="!!state1" setTo="show" 
>> message="tw-set-field">Set</$button></$setfield></$fieldset>
>> </$reveal>
>> <$reveal type="match" state="!!state1" text="show">
>> <$fieldset tiddler="other-target"  set="!!text" setTo="other-content">
>> <$setfield tiddler="target" set="!!text" setTo="1">
>> <$button set="!!state1" setTo="hide" 
>> message="tw-set-field">Set</$button></$setfield></$fieldset>
>> </$reveal>
>>
>> regards
>>
>> On Sunday, May 25, 2014 10:38:21 PM UTC+2, Måns wrote:
>>>
>>> Hi TwWizards
>>>
>>> I don't know how to create a "showwhen" field value is *not* a specified 
>>> value with the list filter field operator.
>>>
>>> <$list filter="[mark[1]]"><span class="red"><$view 
>>> field="1"/></span></$list>
>>> will show the text value of field 1 wrapped in my "red class" when 
>>> there's a text value "1"  of another field "mark". 
>>>
>>> How do I create the opposite effect? - sth like when the value of the 
>>> field "mark" is not 1 - then show value og field one (no class)?
>>>
>>> <$list filter="![mark[1]]"><$view field="1"/></$list>
>>>
>>> Cheers Måns Mårtensson
>>>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to