messages travel down the widget tree, so you need to rap both maketids around the button:
<$maketid title="$publication_title$" tags="$:/_type/publication $tags$" edit="$edit$" message="tw-set-field"> <$maketid title="$publication_authors$" tags="$:/_type/author $tags$" edit="$edit$" message="tw-set-field"> <$button message="tw-new-tiddler" class="$class$"> $label$</$button> </$maketid> </$maketid> Give this a try. I have not used the maketid widget - it may consume the widgit message, on which case this wont work. all the best BJ On Friday, February 26, 2016 at 2:26:40 PM UTC, andrew levy wrote: > > I am trying to make 2 new tiddlers with this add button but I am only > getting 1. Can someone advise where I am going wrong? > > thanks > > andrew > > > \define newPublication_button2(publication_title,publication_authors, > publication_journal,publication_volume,publication_year,publication_doi, > publication_url,publication_abstract,edit:"show",tags,label,class,color) > > <$setfield set="!!publication_title" setTo="$publication_title$"> > <$setfield set="$:/temp/publication!!publication_title" setTo=""> > > <$setfield set="!!publication_authors" setTo="$publication_authors$"> > <$setfield set="$:/temp/publication!!publication_authors" setTo=""> > > <$setfield set="!!publication_journal" setTo="$publication_journal$"> > <$setfield set="$:/temp/publication!!publication_journal" setTo=""> > > <$setfield set="!!publication_volume" setTo="$publication_volume$"> > <$setfield set="$:/temp/publication!!publication_volume" setTo=""> > > <$setfield set="!!publication_year" setTo="$publication_year$"> > <$setfield set="$:/temp/publication!!publication_year" setTo=""> > > <$setfield set="!!publication_doi" setTo="$publication_doi$"> > <$setfield set="$:/temp/publication!!publication_doi" setTo=""> > > <$setfield set="!!publication_url" setTo="$publication_url$"> > <$setfield set="$:/temp/publication!!publication_url" setTo=""> > > <$setfield set="!!publication_abstract" setTo="$publication_abstract$"> > <$setfield set="$:/temp/publication!!publication_abstract" setTo=""> > > <$maketid title="$publication_title$" tags="$:/_type/publication > $tags$" edit="$edit$" message="tw-set-field"> > </$maketid> > > <$maketid title="$publication_authors$" tags="$:/_type/author $tags$" > edit="$edit$" message="tw-set-field"> > <$button message="tw-new-tiddler" class="$class$"> $label$</$button> > </$maketid> > > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > </$setfield> > \end > > \define newPublication_button(label:add "class:"",color:"#ff8389") > <$macrocall $name="newPublication_button2" > publication_title={{$:/temp/publication!!publication_title}} > publication_authors={{$:/temp/publication!!publication_authors}} > publication_journal={{$:/temp/publication!!publication_journal}} > publication_volume={{$:/temp/publication!!publication_volume}} > publication_year={{$:/temp/publication!!publication_year}} > publication_doi={{$:/temp/publication!!publication_doi}} > publication_url={{$:/temp/publication!!publication_url}} > publication_abstract={{$:/temp/publication!!publication_abstract}} > edit={{$:/temp/publication!!edit}} > tags={{$:/temp/publication!!tags}} > label="$label$" > class="$class$" > color="$color$"/> > \end > > <<newPublication_button>> > > > > > > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@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/80df85f8-19c1-4140-8f4c-7930388f08b3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.