Jeff,

On Sat, Mar 19, 2016 at 7:27 PM, Jeff Vance <[email protected]> wrote:
[...]

> 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 tried this and it seemed to work:

<$button>Create Tab
*<$list filter="[title[$:/state/NewTabForm]get[name_temp]]
+[addprefix[_]addprefix<currentTiddler>]" variable="tabname">*
<$action-setfield $tiddler=*<<tabname>>* text={{$:/state/NewTabForm!!text}}
parent={{!!title}} caption={{$:/state/NewTabForm!!name_temp}}/>
<$action-setfield $tiddler='$:/state/NewTabForm' name_temp='' text=''/>
*</$list>*
</$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]]">>
>


Try this:

<<tabs "[field:parent*<currentTiddler>*] [[$:/state/newtab]]">>


Brian

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAO5X8CzQy%3Df5nKrMg3YkD0f1godKBUbs%2B1hEkn3p9J2t-WaB7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to