Hi Tony,

I tried the simple code below in a tab template tagged 
$:/tags/ViewTemplate. The result was the every tiddler displayed the 
comments stuff twice at the bottom, but the tabs were unaffected. I entered 
a comment in one of the tiddlers used in the tabs and that comment did not 
show up in the tab at all, but showed up twice in the tiddler. I'm very new 
to templates so am not sure how to fix it. Thanks so much for your help and 
patience.

Damon



On Friday, January 25, 2019 at 5:57:59 PM UTC-7, TonyM wrote:
>
> Damon,
>
> The tabs can have a template specified and in this template you include 
> the code that would other wise be included in the view template if you want 
> it to appear in the tab. you can use the <<currentTab>> variable to get the 
> tabs tiddler name in the template. By looking at the items tagged 
> $:/tags/ViewTemplate 
> with the comments plugin you will see 
> $:/plugins/tiddlywiki/*comments*/footer-view-template-segment 
> is in the view template.
>
> In the tab template, Setting the Current tiddler to currentTab using 
> <$tiddler tiddler=<<currentTab>> >
> {{||$:/plugins/tiddlywiki/comments/footer-view-template-segment}}
> </$tiddler>
>
> *Code not tested but expected to work*
>
> Here is a tab template of my own, it has not being generalised but it will 
> give some idea to some available tricks such as view and edit inline and 
> comments inside tabs. You will need alternatives to the $:/PSaT tiddlers 
> included.
>
> <$tiddler tiddler=<<currentTab>>>
> <$set name=state-tiddler value=<<qualify "$:/temp/edit-tab-toggle">> >
>
> <div style="float:left;">
> {{||$:/PSaT/show-subTiddler-tabs/button/view-edit-tab-toggle}}
> <<new-in-context>>
> </div>
> <div style="float:right;background-color: #ccffff;">
> {{||$:/core/ui/Buttons/edit}} {{||$:/core/ui/Buttons/open-window}}
> <$button tooltip="Actions outside the current tab" 
> class="tc-btn-invisible">{{$:/core/images/info-button}}</$button>
> </div>
> <div style="text-align: center;">{{!!domain}}: //{{!!description}}//</div>
> <p style="text-align: center;"> {{!!tab-title}}</p>
>
> <$reveal type="nomatch" state=<<state-tiddler>> text="yes">
> <<view-domain>>
> Allow edit-fields-list here in view mode (comes with toggle)
> </$reveal>
> <$reveal type="match" state=<<state-tiddler>> text="yes">
> {{||$:/PSaT/show-subTiddler-tabs/button/view-edit-tab-toggle}}
> <$transclude tiddler="$:/core/ui/EditTemplate/body/editor"/>
> Allow edit fields here in edit mode  (needs toggle)
> </$reveal>
> </$set>
> {{||$:/plugins/tiddlywiki/comments/footer-view-template-segment}}
> </$tiddler>
>
>
>
> Regards
> Tony
>
>
>
> On Saturday, January 26, 2019 at 10:52:06 AM UTC+11, Damon Pritchett wrote:
>>
>> One of the limitations I've noticed with tabs today is that the tiddler 
>> content within the tab does not show the comments from the new comments 
>> plugin and it does not show content being added via the ViewTemplate (I 
>> append some content to all tiddlers matching a certain tag this way. Is 
>> there anyway to remedy this?
>>
>> Thanks as always,
>>
>> Damon
>>
>>
>> On Sunday, October 14, 2018 at 3:49:13 PM UTC-7, TonyM wrote:
>>>
>>> Folks,
>>>
>>> I believe the current tabs macro is limited in some important ways such 
>>> as forcing the content to additional tiddlers when we usually want to 
>>> ensure the tabs remain associated with the original tab "forever" but it 
>>> would also be nice to perhaps have the content of macros or transclusions 
>>> make up tab content sometimes. Default or templated tab content would also 
>>> be great. I plan to make and publish some solutions to this in the future. 
>>> Some hint as to how I am thinking can be found in my MyMenus plugin 
>>> http://tiddlywiki.psat.com.au/mymenus/ that uses fields to define the 
>>> Menus and their order, as eventually we can use this approach to define 
>>> define the Tabs and their order.
>>>
>>> Regards
>>> Tony
>>>
>>> On Monday, October 15, 2018 at 1:02:42 AM UTC+11, Mat wrote:
>>>>
>>>>
>>>> Yeah I needed the tabs in the actual page instead of on the side where 
>>>>> the other tabs are.
>>>>>
>>>>
>>>> so no misunderstanding; "on the actual page" is known as "the tiddler 
>>>> river". This is just a listing of tiddlers. But also the sidebar with its 
>>>> tabs is actually a tiddler that contains a tabs macro. (In the next update 
>>>> of TW, the sidebar will be easy to edit)
>>>>  
>>>>
>>>> <<tabs "SampleTabOne SampleTabTwo SampleTabThree SampleTabFour" 
>>>>> "SampleTabOne" "$:/state/tab1">>
>>>>>
>>>>>
>>>> Each of those are separate tiddlers, so if you have another(!) tiddler 
>>>> titled SampleTabOne then the content of that tid will show in the tab.
>>>>
>>>> I made http://tablinks.tiddlyspot.com/ to simplify editing tabs. It 
>>>> works well in chrome. I think pmario made another version of it.
>>>>
>>>> <:-)
>>>>
>>>>

-- 
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/5a0d4493-6297-45eb-80e3-6582f3af0c9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to