I created a tiddler "New Tab Form" (see code below), which has 2 edit-text widgets: Tab Title and Text. This form itself has a caption field "+" and it is transcluded as a tab into a view tiddler. So you start out with a single tab that gives you this form with a button to creating another tab:
Title: <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTabForm' field='name_temp' placeholder='Tab Title'/>
Text:
<$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTabForm' field='text' placeholder='Tab Text'/>
<$button>Create Tab
<$action-setfield $tiddler="TESTING NEW TAB" text={{$:/state/NewTabForm!!text}} parent={{!!title}} caption={{$:/state/NewTabForm!!name_temp}}/>
<$action-setfield $tiddler='$:/state/NewTabForm' name_temp='' text=''/>
</$button>
I wanted the New Tab Form to be able to access the title of whatever tiddler it is transcluded into. This way it can generate a new tiddler using the name of the parent tiddler and add the tab title as a suffix. So if I start a parent tiddler called "Parent", select the new tab form and say I want a new tab called "Summary", the form will generate a new tiddler called "Parent_Summary", but with a caption field of just "Summary".
So I create a system tiddler $:/state/newtab that simply transludes the form as a template like this:
{{||New Tab Form}}Then my parent topic gets all the tabs who's parent field is the title of THIS tiddler (plus the form in the last tab to create even more tabs):
<<tabs "[field:parent[Test Parent Topic]] [[$:/state/newtab]]">>So this part is basically all working:
So the 2 issues are:
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5b79e928-8cfb-42ca-8853-95cd3d6939d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I created a tiddler "New Tab Form" (see code below), which has 2 edit-text widgets: Tab Title and Text. This form itself has a caption field "+" and it is transcluded as a tab into a view tiddler. So you start out with a single tab that gives you this form with a button to creating another tab:
Title: <$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTabForm' field='name_temp' placeholder='Tab Title'/>
Text:
<$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTabForm' field='text' placeholder='Tab Text'/>
<$button>Create Tab
<$action-setfield $tiddler="TESTING NEW TAB" text={{$:/state/NewTabForm!!text}} parent={{!!title}} caption={{$:/state/NewTabForm!!name_temp}}/>
<$action-setfield $tiddler='$:/state/NewTabForm' name_temp='' text=''/>
</$button>
Then my parent topic gets all the tabs who's parent field is the title of THIS tiddler (plus the form in the last tab to create even more tabs):
<<tabs "[field:parent[Test Parent Topic]] [[$:/state/newtab]]">>
In your tiddlywiki <currentTiddler> worked fine for me. First I cloned your "parent" tiddler to one with a new name and it still had all the tabs from the original (because the tabs filter still has the old parent hard-coded). Then I changed the cloned tiddler to use <currentTiddler> in the filter and only the plus tab was there until I added new tabs. That's the behavior I expect.
What behavior do you see and what do you expect?
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/21a06c8f-26cd-4a40-876c-2feece239b0d%40googlegroups.com.
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5858bf78-55cd-45a6-8d34-d09fdd676d53%40googlegroups.com.