Thanks SO much both of you,

I will use Jeremy's for performance reasons in this case however I will use 
burning tree's for smaller elements, that I want to control in many places.

Love it

Tony


On Tuesday, 16 January 2018 19:44:22 UTC+11, Jeremy Ruston wrote:
>
> Hi Tony, BurningTree,
>
> The CSS approach is handy but suffers from the disadvantage that the 
> hidden content is still rendered, and thus incurs a performance hit.
>
> An alternative is to take advantage of the “storyTiddler” variable. Within 
> a tiddler in the story river it contains the title of the tiddler, and it 
> is unset by default in the sidebar.
>
> For example, try this in a tiddler tagged “$:/tags/Sidebar"
>
> <$list filter="[<storyTiddler>is[tiddler]]" variable="ignored">
> I'm in the story river
> </$list>
>
> <$list filter="[<storyTiddler>!is[tiddler]]" variable="ignored">
> I'm in the sidebar
> </$list>
>
> Best wishes
>
> Jeremy.
>
> On 16 Jan 2018, at 06:43, BurningTreeC <hypnotize...@gmail.com 
> <javascript:>> wrote:
>
> Hi @TonyM,
>
> I would do it with css, because like that you can address tiddlers in the 
> storyriver with
>
> .tc-story-river .tc-tiddler-frame { ... }
>
> and in the sidebar .tc-sidebar-scrollable (maybe .tc-sidebar-lists if 
> tiddlers are in the sidebar tabs) .tc-tiddler-frame { ... }
>
> and for hiding the menus in the storyriver
>
> .tc-story-river .tc-tiddler-frame .menuclass {
>     display: none;
> }
>
> .tc-sidebar-scrollable .tc-tiddler-frame .menuclass {
>     display: block;
> }
>
> Am Dienstag, 16. Januar 2018 07:24:32 UTC+1 schrieb TonyM:
>>
>> Foilks,
>>
>> I am close to completing a menu tool for TW5 and I am trying to find a 
>> way to tell if I am viewing the tiddler in the SideBar or not.
>>
>> Does anyone know the logic, for a filter that can somehow determine where 
>> it is displayed?
>>
>> For example in the side bar I want it to list the menus
>> In an open tiddler I also want to offer checkboxes to change settings on 
>> the menus.
>>
>> Ideally with native tiddlywiki since I am building a plugin and want to 
>> avoid dependencies.
>>
>> Thanks in Advance
>> Tony
>>
>
> -- 
> 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+...@googlegroups.com <javascript:>.
> To post to this group, send email to tiddl...@googlegroups.com 
> <javascript:>.
> 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/6f9bdf68-e139-4a64-8e15-3ee110abad3c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/6f9bdf68-e139-4a64-8e15-3ee110abad3c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/c25cfa43-c177-4994-bfc7-653b21304a07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to