JeRoen,

Thanks for Sharing back. There is a thread that perhaps Mario will update 
in relation to focused tiddlers which may go further towards the 
functionality your are after, or perhaps even better.

Using a Toc to access tiddlers open them in the story river but under this 
proposed approach we get a Focused tiddler value we can use in a sidebar 
tab. It would be trivial to make a button on the view toolbar that also 
sets the focused tiddler on a click. As a result the focused tiddler would 
be the last you navigated to from a TOC or that which you nominate from the 
existing open ones. Further such a focus button could be transcluded in any 
list of tiddlers {{||focusbuttontiddler}} to permit a click to focus.

A little background. Since there are multiple Sidebar items and they are 
all displayed "continuously" the idea of currentTiddler in these is 
somewhat misleading. The fact is a tiddler displayed in the side bar does 
not have a currentTiddler value unless you create a list that filters and 
generates the currentTiddler value.

Place this in a tiddler tagged $:/tags/AboveStory  $:/tags/SideBar  and 
$:/tags/SideBarSegment 
\define notAboveStory()
Not Tagged $:/tags/AboveStory<br>
Shows how to do/display more as a result of an emptyMessage, 
by using a macro definition
\end
<h3>Test ~SideBar</h3>
Current Tiddler: "<<currentTiddler>>"<br>
Current Tab: "<<currentTab>>"<br>

<$list filter="[<currentTiddler>has[title]]" emptyMessage="No Current 
Tiddler available" variable=result>
  Displayed only in Story River
</$list>

<$list filter="[<currentTab>has[title]]" emptyMessage="No current Tab" 
variable=result>
  Displayed only in tabs
</$list>

<$tiddler tiddler="Test SideBar">
<$list filter="[tag[$:/tags/AboveStory]]" emptyMessage=<<notAboveStory>> 
variable=result>
  Displayed only When also tagged $:/tags/AboveStory
</$list>
</$tiddler>
to see what I mean

If you are building tiddlers for use in the side bar you can use the 
existence of $:/tags/SideBar  and $:/tags/SideBarSegment  along with 
testing <<currentTiddler>> and <<currentTab>>

Of note is if the tiddler is tagged $:/tags/AboveStory or another page 
related location the currentTiddler will also not be available so testing 
for the actual tag on the named tiddler may help differentiate those 
tiddlers that could appear anywhere, but because you have no currentTiddler 
use the tiddler command as above.

This should give you a lot to play with.

Regards
Tony



On Monday, June 3, 2019 at 11:35:57 PM UTC+10, jeroen ophetweb wrote:
>
> Thanks for all explanations ... 
>>
>
> My final script looks like this:
>
> {{Used URL's}}
>
>
> <$tiddler tiddler={{$:/HistoryList!!current-tiddler}}><br>
>
>
> This tiddler is mentioned on:
> <<list-links [<currentTiddler>backlinks[]] >>
>
>
> This tiddler links to:
> <<list-links [<currentTiddler>links[]] >>
> </$tiddler> 
>
> The "Used URL's" is shown first and contains about 12 URL's I use a lot. 
> Both links to tiddlers and also links to local files, networkshares and 
> websites. This will probably grow to about 30-40 URL's. 
>
> Below that the backlinks and links on the current tiddler are shown in a 
> list. Especially the backlink I like as the links are off course shown in 
> the TiddlerText but I like it to also see it as a comprehensive list. 
>
> I gave it a tag $:/tags/SideBar so that it is always available as a tab 
> in the sidebar. In the settings I set that tab to be the default tab. 
>
> This for now gives me enough to start with although I think that in time I 
> want to add links independently from backlinks and links but we cross that 
> bridge when we get there. This post gives me a firm start to begin with. 
>
> Thank you all. 
>
> JeRoen
>

-- 
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/53f65634-e58d-4662-b99d-b40c8ded7c0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to