I've got an idea which can improve the following.

The case: a plugin developer creates an XPlugin and also an
XPluginInfo tiddler. It is desirable to create links in each one to
another. Let's imply that those tiddlers are intended to be placed
into an online repository (example.org/tiddlywiki.html).

Now the developer has to choose: use either PrettyLinks ([[XPlugin]],
[[XPluginInfo]]) or outer links (example.org/tiddlywiki.html#XPlugin,
example.org/tiddlywiki.html#XPluginInfo). In the first case if only
XPlugin tiddler is imported, in the importing TW appears a
[[XPluginInfo]] item in the missing list. On the other hand, if outer
links are used, the navigation in the repository is hindered (new tabs
start to open, or the page is substituted with just the TW with
XPluginInfo open (after clicking example.org/tiddlywiki.html#XPlugin).

Now the possible solution. Let's imagine that before a link is
generated in the place of example.org/tiddlywiki.html#XPlugin, TW
looks up the SiteUrl tiddler and matches the content with the
example.org/tiddlywiki.html . If they match, it creates a PrettyLink,
if not -- an outer link. Than the problem seems to be solved.

Now this demands that those links are outer links. This generates a
couple of notes:
* first, the problem is not solved literally. For instance, in the
TiddlyTools repository, there are loads of PrettyLinks. Asking Eric to
change all of them would be rather stupid/impolite. Unless he invents
some script that can fix this at once.
* next, outer links are longer that PrettyLinks. That's a small
drawback.
* finally, this fixes the location of the repository. Well, this is
rather fair since downloaded tiddlers would contain the address
anyway.

An alternative solution would be to imply that the PrettyLinks should
be used in this case and make import to be more sophisticated (with
automodifying the content) but this sounds rather bad (what if just
copying is used instead of import?).

What do you think?

Yakov.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev?hl=en.

Reply via email to