Tip: Scroll to the top of the story river to see it in action... ("skjul" 
means "hide", "vis" means "show" - "ny" means "new"...

Den torsdag den 7. maj 2015 kl. 10.03.04 UTC+2 skrev Måns:
>
> Hi again
>
> Now I made it work :-)
>
> http://xn--mns-ula.dk/kinabog/ 
>
> The trick was to "inject" the current tiddler title - and tags into the
> maketid widget's attribute values and set the current tiddler as the 
> template...
>
> Cheers Måns Mårtensson
>
> Edit: It's quite a mess to look at atm - sorry - I will clean it up when I 
> get a little more time...
>
> Den torsdag den 7. maj 2015 kl. 09.42.14 UTC+2 skrev Måns:
>>
>> Hi Matabele
>>
>> I edited your MakeTid widget:
>> Changed all "tw-" labels to "tm-labels" .... Now it seems to almost work 
>> as I hoped....
>> I still have some problems with new titles (it creates tiddlers titled 
>> "NewTiddler" (not current tiddler title) and adds 1, 2, 3 to it...
>>
>>
>> Cheers Måns Mårtensson
>>
>> Den torsdag den 7. maj 2015 kl. 09.31.27 UTC+2 skrev Måns:
>>>
>>>  EDIT: Sorry... I was to quick ... It didn't suppress opening the clone 
>>> for editing anyway....
>>>
>>> Den torsdag den 7. maj 2015 kl. 08.44.13 UTC+2 skrev Måns:
>>>>
>>>> Hi Matabele
>>>>
>>>> Great :-) Thank you very much!!
>>>>
>>>>  EDIT: Sorry... I was to quick ... It didn't suppress opening the 
>>>> clone for editing anyway....
>>>>
>>>> I simply pasted the code from the clone button into your maketid widget 
>>>> - and it just works :-)
>>>>
>>>> <$maketid edit="no"><$button message="tm-new-tiddler" 
>>>> param=<<currentTiddler>> tooltip={{$:/language/Buttons/Clone/Hint}} 
>>>> aria-label={{$:/language/Buttons/Clone/Caption}} 
>>>> class=<<tv-config-toolbar-class>>>
>>>> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
>>>> {{$:/core/images/clone-button}}
>>>> </$list>
>>>> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
>>>> <span class="tc-btn-text"><$text 
>>>> text={{$:/language/Buttons/Clone/Caption}}/></span>
>>>> </$list></$button></$maketid>
>>>>
>>>> To me it seems that the parameter you've added:
>>>> >*edit="yes" (default) opens the tiddler for editing – edit="show" 
>>>> navigates to but does not open the tiddler – edit="no" suppresses 
>>>> navigation*
>>>>
>>>> should be implemented as an option for the tm-new-tiddler widget 
>>>> @Jeremy?
>>>>
>>>> Cheers Måns Mårtensson
>>>>
>>>> EDIT: Sorry... I was to quick ... It didn't suppress opening the clone 
>>>> for editing anyway....
>>>>
>>>>
>>>> Den torsdag den 7. maj 2015 kl. 04.46.51 UTC+2 skrev Matabele:
>>>>>
>>>>> Hi Mans
>>>>>
>>>>> Perhaps this 
>>>>> <http://gwiz.tiddlyspot.com/#:MakeTidWidget%20sample-template> meets 
>>>>> your needs?
>>>>>
>>>>> regards
>>>>>
>>>>> On Tuesday, May 5, 2015 at 10:08:33 AM UTC+2, Måns wrote:
>>>>>>
>>>>>> Hi TwWizards
>>>>>>
>>>>>> How do I make a clone button which creates tiddlers silently?
>>>>>>
>>>>>> As I understand I have to use the action-setfield widget and not the 
>>>>>> tm-new-tiddler widget message to be able to generate/edit tiddlers 
>>>>>> without 
>>>>>> having to open them....
>>>>>> I'd like to be able to do both:
>>>>>>
>>>>>> 1) Silently create tiddlers with new titles based on the first 
>>>>>> (current) tiddler's title (not a clone)
>>>>>> 2) Silently create multiple clones of the current tiddler with new 
>>>>>> titles based on the first (current) tiddler's title.
>>>>>>
>>>>>> Is this already possible?
>>>>>>
>>>>>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/98e3b762-bd09-42f2-9bf5-5a99a578820b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to