@switchplayer This might not be what you want, but I'll give a quick 
explanation of how you could create something like this yourself.

First you want a tiddler to keep your tabs, and then a way to transclude it 
on every other tiddler.

Create a tiddler called something like $:/switchplayer/references/tabs, and 
add the text <<tabs "[tag[references]]">>. This uses the tabs Macro 
<https://tiddlywiki.com/#tabs%20Macro> to give you a new tab for any other 
tiddler that is tagged "references". Of course you could choose any tag you 
want.

Now you want this to appear at the bottom of every tiddler in your wiki, so 
to do this you add the system tag $:/tags/ViewTemplate.

As of yet you don't have any tabs. You need to create a new tiddler for 
each tab that you want to see, and within the text of the tiddler create a 
list of whatever content that you want. Make sure to also give it the tag 
"references".

So for a simple list of backlinks I might create a tiddler called 
"Backlinks" and add the following to the text:

<$list filter="[<currentTiddler>backlinks[]]">
<$link><<currentTiddler>></$link>
<br>
</$list>

If I wanted to also transclude the content of each tiddler I might create a 
tiddler called "Transcluded backlinks" and add the following:

<$list filter="[<currentTiddler>backlinks[]]">
<$link><<currentTiddler>></$link>
<br>
<$transclude tiddler=<<currentTiddler>> mode=block/>
<br>
</$list>

You can now just keep adding new tiddlers with whatever content that you 
want to display as part of a tab. Hopefully that is helpful.
On Friday, 18 December 2020 at 16:21:59 UTC switchplayer wrote:

> David,
>
> Thanks so much! 
>
> I just tried adding this, and it appears to create a tab for each 
> reference, which isn't what I'm looking for. Allow me to provide some 
> additional context/clarification, as I realize I was a bit vague...
>
>
> Currently, I have my wiki set up using Drift for references. So on the 
> bottom of each tiddler, there is a "Backlinks" tab, a "Tagged" tab, and a 
> "Freelinks" tab. 
>
> This works great, but the issue is that it only shows the title of each 
> reference. Often times I am wanting to also have it show the body of the 
> reference as well. 
>
> Stroll is able to accomplish that quite nicely as it gives me the ability 
> to select how I want to view the references. 
>
> So I suppose what I am wanting would be somewhat of a hybrid of Stroll and 
> Drift, where I can have different tabs difference types of references, but 
> within each tab, be able to select how each reference is shown (title only, 
> title + body, title + context, etc).
>
>
>
> Let me know if that makes any sense or if I'm just making it worse ;)
>
>
>
> On Friday, December 18, 2020 at 10:08:17 AM UTC-6 David Gifford wrote:
>
>> Create a tiddler:
>>
>> Title: $:/.giffmex/ViewTemplate/refstabs
>>
>> Tag: $:/giffmex/refs 
>> Caption: Tabs
>> Dummy: yes
>>
>> Text: 
>>
>> <span class="viewtemplatebigtext">
>>
>> <$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" 
>> retain="yes" animate="yes">
>>
>> <hr>
>>
>> <$vars searchme=<<currentTiddler>> searchspx={{{ 
>> [<currentTiddler>escaperegexp[]]}}} >
>>
>> <<tabs ' [!is[system]all[current]backlinks[]!tag[hide]sort[title]] 
>> -[is[current]] ' '' '$:/state/tab/strolltabs' 'tc-vertical'>>
>> </$vars> 
>>
>> </$reveal>
>>
>> </span>
>>
>> On Friday, December 18, 2020 at 10:00:02 AM UTC-6 switchplayer wrote:
>>
>>> Hello,
>>>
>>> Is there any way to implement tabs in Stroll's functionality? That is, 
>>> on each tiddler, have tabs appear listing the different types of references 
>>> (backlinks, tagged, etc). 
>>>
>>> I know Drift does something similar, but Drift does not allow you to 
>>> change the viewing style of the references like Stroll does. 
>>>
>>> Still a beginner when it comes to TiddlyWiki development, so unsure of 
>>> how this would be accomplished. 
>>>
>>> Thanks!
>>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/15f14630-97c5-446d-8c7a-338daf713fb3n%40googlegroups.com.

Reply via email to