Hello Mans,
If you have adopted Matabelle's solution I think you should stick to it. My
macro is just a patch
El jueves, 7 de mayo de 2015, 8:44:13 (UTC+2), Måns escribió:
Hi Matabele
Great :-) Thank you very much!!
I simply pasted the code from the clone button into your maketid widget -
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
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
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
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
Den torsdag den 7. maj 2015 kl. 09.42.14 UTC+2 skrev
Thanks Danielo :-)
Den torsdag den 7. maj 2015 kl. 09.32.38 UTC+2 skrev Danielo Rodríguez:
Hello Mans,
If you have adopted Matabelle's solution I think you should stick to it.
My macro is just a patch
El jueves, 7 de mayo de 2015, 8:44:13 (UTC+2), Måns escribió:
Hi Matabele
Great :-)
Hi Matabele
Great :-) Thank you very much!!
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}}
Hi Mans
I will get around to updating my widgets for the more recent versions of TW
sometime soon -- they were built for the old version and will need various
code tweaks. Don't know why the $maketid widget isn't picking up the title
specified in the parameters -- it was designed to do so.
Hi Matabele
Don't know why the $maketid widget isn't picking up the title specified in
the parameters -- it was designed to do so.
It did - it was just me. I tried to use your maketid widget with no
attributes set and the core clone button which have:
param=currenTiddler and hoped that
I made the same question some time ago. I ended up creating a small javascript
macro for it and a pull request to the core. The pull request was to allow
prefixes like zeroes and spaces. I can share that macro if you are interested
--
You received this message because you are subscribed to
Just to be clear, the only thing the macro does is returning a new unique name,
if I remember well my own ideas...
--
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
Hi Danielo
Yes please :-)
Do you think I can combine it with an action-setfield widget message to
silently create a new tiddler with a unique title based on the current
tiddler title every time I click the button? eg. New tiddler 1, New tiddler
2 etc ...
Cheers Måns Mårtensson
Den onsdag
Hi c pa
Thank you very much - however I can't see how your code will let me create
a new tiddler title every time I click the testButton?
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
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
Just a chime in that I'd like to know too (for the FastNewTiddler
http://fastnewtiddler.tiddlyspot.com/project)
:-)
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
This works:
\define setfield(tiddlerName,templateName,fieldName)
$set name=fieldValue value={{$templateName$!!$fieldName$}}
$action-setfield $tiddler=$tiddlerName$ $field=$fieldName$
$value=fieldValue /
/$set
\end
\define createSilentTarget(tiddlerName,templateName,buttonName)
16 matches
Mail list logo