And is there a way to list external links as well?

BTW, how do you like the following, is it cheating?

StyleSheet:
.relatedTiddlers .tiddlyLinkNonExisting {display:none;}

ShowRelatedTiddlers:
<script>
var tid=story.findContainingTiddler(place).getAttribute("tiddler");
var links=store.getTiddler(tid).getLinks();
return wikify('{{relatedTiddlers{\n:[['+links.sort().join(']]\n:[[')
+']]\n}}}',place);
</script>

-- R

On Apr 21, 11:21 pm, Eric Shulman <[email protected]> wrote:
> On Apr 21, 10:49 pm, RA <[email protected]> wrote:
>
> > I think I got it:
> > return wikify('[['+store.getTiddler(story.findContainingTiddler
> > (place).getAttribute("tiddler")).getLinks().sort().join(']]\n[[')
> > +']]',place);
>
> > Now how would I make it take into account the
> > chkDisableNonExistingWikiLinks=true?
>
> Try this:
>
> <script>
> var tid=story.findContainingTiddler(place).getAttribute("tiddler");
> var links=store.getTiddler(tid).getLinks();
> for (var i=0; i<list.length; i++) if (!store.tiddlerExists(list[i]))
> list[i]='';
> return wikify('[['+list.sort().join(']]\n[[')+']]',place);
> </script>
>
> -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