Lost Admin. I just stumbled here, and wanted a good answer myself. I have just found the ad hoc macro https://tobibeer.github.io/tb5/#Ad-Hoc%20Macro The Macros name is "="
and place in any tiddler that may be referenced in a tab <<= $(currentTab)$>> This does not appear unless the tiddler is in a tab. Is that what you are after? I will now try and get it somehow into the viewtemplate or tab macro. Cheers Tony On Wednesday, March 8, 2017 at 3:56:45 AM UTC+11, Lost Admin wrote: > > I've done a bunch of experimenting to try and solve my own problem and I > have been left very confused. > > When I create the template for displaying the tab like this: > > !{{<<currentTab>>!!title}} > > <$button action="action-sendmessage" message="tm-edit-tiddler" > param=<<currentTab>> tooltip="Edit this Tab">Edit Tab</$button> > > > I get the button at the bottom and the title of the tiddler, as expected. > > > When I create the template like this: > > {{<<currentTab>>!!text}} > > <$button action="action-sendmessage" message="tm-edit-tiddler" > param=<<currentTab>> tooltip="Edit this Tab">Edit Tab</$button> > > > or this: > > {{<<currentTab>>}} > > <$button action="action-sendmessage" message="tm-edit-tiddler" > param=<<currentTab>> tooltip="Edit this Tab">Edit Tab</$button> > > > I don't get the tiddler content, just the button. > > I don't understand why the {{ }} works for some fields but not all? > > > On Monday, March 6, 2017 at 10:47:13 AM UTC-5, Lost Admin wrote: >> >> >> >> On Friday, March 3, 2017 at 2:12:28 PM UTC-5, Mark S. wrote: >>> >>> Looking at the documentation, it appears that you can provide a template >>> for transcluding the content of the tabs. Then, inside the template, you >>> can access the current tab as variable currentTab. Perhaps that is useful >>> for what you want? >>> >>> Good luck, >>> Mark >>> >>> On Friday, March 3, 2017 at 10:16:47 AM UTC-8, Lost Admin wrote: >>>> >>>> Further to my own question ... >>>> >>>> I can create a template to use with vertical tabs that consistes of >>>> {{!!text}} and the button widget but when I use it with horizontal tabs, >>>> it >>>> doesn't show the tab content it shows the parent tiddler content. >>>> >>>> On Friday, March 3, 2017 at 12:16:52 PM UTC-5, Lost Admin wrote: >>>>> >>>>> Hi all, >>>>> >>>>> I find I use tabs regularly for a couple of reason. One of which is >>>>> quick access to lists I edit regularly. To simplify getting to the actual >>>>> tiddler, I added a button to the bottom of the tiddler that opens the >>>>> transcluded tiddler in edit mode. >>>>> >>>>> <$button actions="action-sendmessage" message="tm-edit-tiddler" >>>>>> param=<<currentTab>> tootlip="Edit this tab">Edit Tab</$button> >>>>>> >>>>> >>>>> I figured out that I can create a view template and add a filter to >>>>> add the above button to the bottom of tiddlers with a specific tag. *Is >>>>> there a way to filter based on whether the tiddler is being transcluded >>>>> or >>>>> not*? It would be nice to only include the button when the tiddler is >>>>> being displayed in a tab. >>>>> >>>> >> I tried, but it's not picking up the {{<<currentTab>>!!text}} >> transclusion even though it does pick up the rest. To demonstrate, I've >> created this -> http://thelostadmin.tiddlyspot.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+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/542c0724-021b-491b-815a-699444c9bed6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.