Addendum #2

The link macro I previously wrote as part of *Alternate TiddlyWiki Purposes* 
can be made more adaptable, by using references to $:/info/url/... shadow 
tiddlers.

Instead of "hard-coding" the entire URL (except for the ending parameter 
value):
\define link(suffix)
<a title="Use this link to bookmark this site's purpose." href=
"https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html?context=$suffix$";
 
style="text-decoration: none;">🔖</a>
\end
you can write:
\define link(suffix)
<a title="Use this link to bookmark this site's purpose." href={{{ [{$:
/info/url/origin}addsuffix{$:/info/url/pathname}?context=$suffix$] }}} style
="text-decoration: none;">🔖</a>
\end
In this way, if you re-host the file using a different domain or pathname, 
it will automatically reflect that change.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b449eef7-84f8-46ae-9c6d-0d65ecfca96co%40googlegroups.com.

Reply via email to