[tw] Re: TW5 View Template when displaying in tabs?

2017-07-08 Thread TonyM
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:
>
> !{{<>!!title}}
>
> <$button action="action-sendmessage" message="tm-edit-tiddler" 
> param=<> tooltip="Edit this Tab">Edit Tab
>
>
> I get the button at the bottom and the title of the tiddler, as expected.
>
>
> When I create the template like this:
>
> {{<>!!text}}
>
> <$button action="action-sendmessage" message="tm-edit-tiddler" 
> param=<> tooltip="Edit this Tab">Edit Tab
>
>
> or this:
>
> {{<>}}
>
> <$button action="action-sendmessage" message="tm-edit-tiddler" 
> param=<> tooltip="Edit this Tab">Edit Tab
>
>
> 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=<> tootlip="Edit this tab">Edit Tab
>>
>
> 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 {{<>!!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.


[tw] Re: TW5 View Template when displaying in tabs?

2017-03-07 Thread Lost Admin
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:

!{{<>!!title}}

<$button action="action-sendmessage" message="tm-edit-tiddler" 
param=<> tooltip="Edit this Tab">Edit Tab


I get the button at the bottom and the title of the tiddler, as expected.


When I create the template like this:

{{<>!!text}}

<$button action="action-sendmessage" message="tm-edit-tiddler" 
param=<> tooltip="Edit this Tab">Edit Tab


or this:

{{<>}}

<$button action="action-sendmessage" message="tm-edit-tiddler" 
param=<> tooltip="Edit this Tab">Edit Tab


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=<> tootlip="Edit this tab">Edit Tab
>

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


[tw] Re: TW5 View Template when displaying in tabs?

2017-03-06 Thread Lost Admin


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=<> tootlip="Edit this tab">Edit Tab

>>>
>>> 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.
>>>
>>
Yep. And it works great on vertical tabs but the exact same template breaks 
on horizontal tabs.  

-- 
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/3b568e55-460a-4a75-a80e-d1eb943979d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 View Template when displaying in tabs?

2017-03-03 Thread 'Mark S.' via TiddlyWiki
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=<> tootlip="Edit this tab">Edit Tab
>>>
>>
>> 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.
>>
>

-- 
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/81d6de4b-8f62-42f4-b949-20c0d34a271c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 View Template when displaying in tabs?

2017-03-03 Thread Lost Admin
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=<> tootlip="Edit this tab">Edit Tab
>>
>
> 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.
>

-- 
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/009a3006-bcec-4a91-9d2e-d074fe79392c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.