> In TiddlerA I have a link to TiddlerB.  TiddlerB contains only
> "TiddlerC".  When clicking TiddlerB a RedirectPlugin opens TiddlerC
> with "redirected from TiddlerB" at the top.  Upon clicking TiddlerB in
> this statement, it opens TiddlerB without initiating the redirect or
> it opens it in edit mode (what ever works).

First, put an inline script [1] in TiddlerB, like this:

<script>
   var here=story.findContainingTiddler(place);
   var tid=here.getAttribute('tiddler');
   var alt='TiddlerC';
   if (!story.getTiddler(alt))
      { story.displayTiddler(here,alt); story.closeTiddler(tid); }
   else
      { story.closeTiddler(alt); }
</script>

What the script does:

If TiddlerC is not already displayed when the script in TiddlerB is
rendered, then TiddlerC is automatically displayed and TiddlerB is
closed.  Otherwise, TiddlerC is closed, leaving TiddlerB visible.
Thus, either TiddlerB or TiddlerC will be displayed, but not both.  Of
course, TiddlerC should contain the desired message and link back to
TiddlerB to complete the 'round-trip'...

enjoy,
-e

[1] requires http://www.TiddlyTools.com/#InlineJavascriptPlugin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to