I am trying to use the unusedtitle macro. It is possible to set a literal baseName from which to generate the new title, but how do I get it to do this, based on the currentTiddler value?
For the life of me I cant see how.
I want to assign this new potential title to a variable as well.
@sull-vitsy that will work in some cases, but I needed the “unused title” stored in a variable for use in multiple places.
I am still working on the tool that uses this. Now the unused title is not changing after I create them. It keeps returning to “tiddlername 1”, unless I refresh the tiddler eg; edit/save
ActionCreateTiddler widget and unusedtitle macro got some boosts in v5.2.0
Especially for the actionCreateTiddler widget. See:
New in: 5.2.0 Note that the attributes $savetitle and $savedrafttitle are no longer needed. Instead, any action widgets that need to use the title of the newly created tiddler should be contained within the action-createtiddler widget, and reference the variables createTiddler-title and createTiddler-draftTitle to obtain the title.
I have got this working by moving the actions from the buttons actions parameter’s to inside the body. I do not have a full understanding of why but here is the resulting macro if you are interested;
I will mark this as solved on my own post but feel free to contribute. Thanks @pmario
If you are interested in the actual solution do ask, it’s currently a work in progress. To easily create subtiddlers.
Notes:
The tagging is not occurring
This demonstrates creating tiddlers by edit
A temporary tiddler is “created by simply editing”, the create button actually renames this and sets various parameters on button click so no actioncreate tiddler is used…
This creates the subTiddler and opens it below (without navigation).