<$button>
<$action-setfield $tiddler="$old-title$" title={{??WHAT-TO-DO??}}/>
rename
</$button>
\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)Mhhh, I'll attribute it to having been away for a whileor 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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@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/a8cd3caa-d8e7-4616-9630-bf5a6c9892c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
you could define it like this: