Hi Tobias,
you could define it like this:
|\define changer(old-title) <$set name="currentTiddler"
value="$(state)$"> <$button> <$action-setfield $tiddler="$old-title$"
title={{!!new-title}}/> copy </$button> </$set> \end|
Please note that it only archieves a copy functionality rather than a
rename (i.e. the original tiddler will still exist)
/Andreas
Am 18.09.2015 um 22:07 schrieb Tobias Beer:
Mhhh, I'll attribute it to having been away for a while
or maybe it's one of those things that just won't work.
Here's the situation and I can't wrap my head around solving it...
Assume...
* there's a variable *state *holding the title of a state tiddler
* this tiddler has field called *new-title*
* and I'm in the context of a macro that knows of a parameter
*old-title*
Now, here's the issue...
I want to read the field *new-title* from tiddler *state *and assign
it as the title to tiddler *old-title*.
|
<$button>
<$action-setfield $tiddler="$old-title$" title={{*??WHAT-TO-DO??*}}/>
rename
</$button>
|
What to do (again)?
Best wishes,
— tb
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
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/a8cd3caa-d8e7-4616-9630-bf5a6c9892c1%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/a8cd3caa-d8e7-4616-9630-bf5a6c9892c1%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/55FC77C9.9060607%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.