automatically open one tiddler when another one opens

55 views
Skip to first unread message

Rich

unread,
Apr 11, 2013, 11:30:37 PM4/11/13
to tiddl...@googlegroups.com
I have a tabbed menu in FiddlyWiki on the left sidebar (i.e. Main Menu) under a slider called "tags."  The tags page consists of two tabs, one with an alphabetical list of all tags and the other with a tag cloud.  The tag cloud does not have enough horizontal space so I want the tag cloud to automatically open in the main window when the "cloud" tab is selected.  The closest I have been able to get is a tiddler consisting of link to a page that opens in the main window, but you have to click it.
Here is the layout:

tags>> slider
(list) (cloud)   tabs under the slider
*tag
*list
*here
*when
*list
*selected

for reference, here is the main menu tiddler:
[[Start|GettingStarted]] ToDo [[Projects|WorkNotes]] [[Links]][[WayMusic|http://music.way.net]]<<slider chkTagContents [[TagContents]] 'Tags »' 'tags'>>

Here is TagContents
{{tabtagClass{<<tabs txtMainTab List 'list all tags' TabTags Cloud 'tag cloud' TagCloud>>}}}

Here is TagCloud
[[(Open Tag Cloud)|TagCloudWin]]

and here is TagCloudWin
{{tagcloudClass{<<tagCloud includeNew unplugged systemConfig systemTiddlers>>}}}

What I want is that when the "Cloud" tab (TagCloud) of TagContents gets clicked in the Main Menu sidebar, that TagCloudWin will open in the main tiddler space automatically instead of me having to click the link as coded above.

Is there a macro or a plugin that could do this?

As always, thanks for the help.
Rich
http://way.net/FiddlyWiki

Eric Shulman

unread,
Apr 12, 2013, 12:50:48 AM4/12/13
to TiddlyWiki
> Here is TagCloud
> [[(Open Tag Cloud)|TagCloudWin]]
>
> and here is TagCloudWin
> {{tagcloudClass{<<tagCloud includeNew unplugged systemConfig
> systemTiddlers>>}}}
>
> What I want is that when the "Cloud" tab (TagCloud) of TagContents gets
> clicked in the Main Menu sidebar, that TagCloudWin will open in the main
> tiddler space automatically instead of me having to click the link as coded
> above.
>
> Is there a macro or a plugin that could do this?

Using
http://www.TiddlyTools.com/#InlineJavascriptPlugin
you can write:
<script> story.displayTiddler(null,"TagCloudWin"); </script>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
Reply all
Reply to author
Forward
0 new messages