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 [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/c1c69cb8-2a8b-4c9c-a44e-1ee9f4f80bff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.