A real nice, amazing bit of code! I'll be poring over the code, to see
what I can learn!

I think the regular expression might need a teensy tweak. A tiddler
like:

  <<tiddler TreeviewMacroExample >>

doesn't seem to get picked up, possibly due to the space on the end.
Then again, maybe I'm not supposed to be using the inclusion macro
that way.

Mark

On Jul 13, 9:34 pm, Eric Shulman <[email protected]> wrote:
> > 'Referneces' in the toolbar shows what links to a tiddler. I wondered
> > if there was a way of showing where a tiddler was transcluded to.
>
> Try this bit of 'pure' HTML:
> ------------------------
> <html><hide linebreaks>
> <a href="javascript:;" title="list tiddlers that have transcluded this
> tiddler" onclick="
>         var t=story.findContainingTiddler(this).getAttribute('tiddler');
>         var m=new RegExp('\<\<tiddler (\\[\\[)?'+t+'(\\]\\])?( with: .*)?\>
> \>','');
>         var s=store.search(m,'text','excludeLists');
>         var out=[];
>         if (!s.length) out.push('no matching tiddlers');
>         for (var i=0;i<s.length;i++) out.push(s[i].title);
>         var p=Popup.create(this);
>         var d=createTiddlyElement(p,'div');
>         var s=d.style;
>         s.padding='2px'; s.textAlignment='left';
>         wikify(out.join('\n'),d);
>         Popup.show();
>         event.cancelBubble=true;
>         if (event.stopPropagation) event.stopPropagation();
>         return false;
> ">transcluded by</a></html>
> ------------------------
>
> enjoy,
> -e
--~--~---------~--~----~------------~-------~--~----~
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