Hello,
I’m looking for a solution to get the current open TAB name to create a new tiddler tagged with it.
I don’t know if i am very clear so i join a picture of my issue and the code of my two tiddlers.
My first approach was to use the contents of the tab’s “state” tiddler (which contains the name of the open tab) but this doesn’t work.
I think the syntax is wrong.
Do you have any advice on how to achieve this?
Thank you.
Home 1
<$reveal type='match' state='StateAddBookmarkL1' text='show' >
<$transclude
tiddler='Add Bookmark L1'
/>
</$reveal>
<$button class="tc-btn-invisible" set='StateAddBookmarkL1' setTo='show' >
,,{{$:/core/images/new-button}} cat L1,,
</$button>
<$macrocall $name="tabs" tabsList="[tag[L1]sort[]]" state="$:/temp/state/tab"/>
AA
Name:
<$edit-text tiddler='tempNewBookmarkL2' field=name class='tc-edit-texteditor' />
<$button set='StateAddBookmarkL2' setTo='hide' >Add L2
<$action-setfield
$tiddler='tempNewBookmarkL2'
$field='title'
$value={{tempNewBookmarkL2!!name}}
/>
<$fieldmangler tiddler={{tempNewBookmarkL2!!name}} >
<$action-sendmessage $message='tm-add-tag' $param={{$:/temp/state/tab}} />
</$fieldmangler>
<$action-setfield $tiddler='tempNewBookmarkL2' name='' />
</$button>