Mark you are great.
now i to reflect how i can commit the license-plate of the car into the
new tiddler as tag
it shoud be an inputfield and the value of the inputfield will be the tag
tanks
Am Donnerstag, 5. März 2020 20:03:29 UTC+1 schrieb Mark S.:
>
> See code below.
>
> << ... >> is used for variables. Unfortunately, you can not use <$select>
> to set a variable. You can only set a field, including the text field.
>
> The "action-sendmessage" needs the $param, not the title. What "$param"
> holds will vary depending on the message.
>
> I don't think you can close the tiddler with the same button action if
> you make it with* tm-new-tiddler.*
>
> To make a tiddler without opening it, you will need either:
>
> ActionCreateTiddlerWidget
>
> or you will need action-setfield. If you use action-setfield then you will
> need to set all the fields of the target tiddler. You will also have to
> figure out a new title for the target tiddler.
>
> Good luck!
>
> <$select tiddler="$:/SiteTitle" tooltip="select tiddler which should will
> cloned" >
> <option value="Benzin - Jahr">Benzin</option>
> <option value="Fahrzeugpflege - Jahr">Fahrzeugpflege</option>
> <option value="Inspektionen und TÜV - Jahr">Inspektionen und TÜV</option>
> <option value="Räder: Reifen und Felgen - Jahr">Räder: Reifen und Felgen
> </option>
> <option value="Reparaturen und Wartung - Jahr">Reparaturen und Wartung
> </option>
> <option value="Scheibenwischer - Jahr">Scheibenwischer</option>
> <option value="Versicherung - Jahr">Versicherung</option>
> <option value="Zulassung - Jahr">Zulassung</option>
>
> </$select>
>
> <$button> clone selected tiddler
> <$action-sendmessage $message="tm-new-tiddler" $param={{$:/SiteTitle}}/>
>
> <!-- <$action-sendmessage $message="tm-close-tiddler"
> $param={{{[has[draft.of]field:draft.of<<selection>>]}}}/> -->
>
> </$button>
>
>
>
> On Thursday, March 5, 2020 at 9:53:43 AM UTC-8, Gerald Weis wrote:
>>
>>
>> Hi Mark this was an Part of the problem.
>> Thle code i have corrected
>>
>> <$select tiddler='$:/SiteTitle' tooltip='select tiddler wich should will
>> cloned'>
>> <$vars selection="tiddler">
>> <option value="Benzin - Jahr">Benzin</option>
>> <option value="Fahrzeugpflege - Jahr">Fahrzeugpflege</option>
>> <option value="Inspektionen und TÜV - Jahr">Inspektionen und TÜV</option>
>> <option value="Räder: Reifen und Felgen - Jahr">Räder: Reifen und Felgen
>> </option>
>> <option value="Reparaturen und Wartung - Jahr">Reparaturen und Wartung
>> </option>
>> <option value="Scheibenwischer - Jahr">Scheibenwischer</option>
>> <option value="Versicherung - Jahr">Versicherung</option>
>> <option value="Zulassung - Jahr">Zulassung</option>
>> </$vars>
>> </$select>
>>
>> <$button> clone selected tiddler
>> <$list filter=<<selection>>>
>> <$action-sendmessage $message="tm-new-tiddler" title=<<selection>>/>
>> <$action-sendmessage $message="tm-close-tiddler"
>> $param={{{[has[draft.of]field:draft.of<<selection>>]}}}/>
>> </$list>
>> </$button>
>>
>> i believe, the button-code are count the tiddlers and create new tiddlers
>> so much this count.
>>
>> i want to create 1 tiddler as an clone of the selected tiddler.
>> what is wrong to my code?
>>
>>
>>
>>
>> Am Donnerstag, 5. März 2020 17:27:05 UTC+1 schrieb Mark S.:
>>>
>>> The <option> tag needs a value attribute:
>>>
>>> <option value="Benzin - Jahr">Benzin - Jahr</option>
>>>
>>> On Thursday, March 5, 2020 at 8:11:11 AM UTC-8, Gerald Weis wrote:
>>>>
>>>> thats is my code.
>>>>
>>>> <$select tiddler='$:/SiteTitle' tooltip='select tiddler wich should
>>>> will cloned'>
>>>> <$vars selection="tiddler">
>>>> <option>Benzin - Jahr</option>
>>>> <option>Fahrzeugpflege - Jahr</option>
>>>> <option>Inspektionen und TÜV - Jahr</option>
>>>> <option>Räder: Reifen und Felgen - Jahr</option>
>>>> <option>Reparaturen und Wartung - Jahr</option>
>>>> <option>Scheibenwischer - Jahr</option>
>>>> <option>Versicherung - Jahr</option>
>>>> <option>Zulassung - Jahr</option>
>>>> </$vars>
>>>> </$select>
>>>>
>>>> <$button> clone selected tiddler
>>>> <$list filter=<<selection>>>
>>>> <$action-sendmessage $message="tm-new-tiddler" title=<<tiddler>>
>>>> tags="uu"/>
>>>> <$action-sendmessage $message="tm-close-tiddler"
>>>> $param={{{[has[draft.of]field:draft.of<<selection>>]}}}/>
>>>> </$list>
>>>> </$button>
>>>>
>>>>
>>
>>> this code make 66 new tiddler but dont clone the selectet tiddler.
>>>>
>>>> i must the tiddler clone while in this wiki i wortk with tiddlerfields
>>>> in my templates.
>>>>
>>>> thanks for help
>>>>
>>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/3e21b92a-adae-4cef-9b4c-dbdf9057312a%40googlegroups.com.