On Aug 20, 12:15 am, Daniel <[email protected]> wrote: > I am trying to build a url dynamically with aliasplugin and > matchtagsplugin.
> Also, I want the whole url to link to the Internet, but > now one part links to the Internet, another part links to a tiddler > and parts inbetween are not linked. > The second matchTags gets called but not the first one. What am I > doing wrong? It appears that you are trying to use the output from <<matchTags>> as part of the definition for the <<morningstar>> alias. However, this use of the <<matchTags ...>>" macro syntax within the alias definition can *never* work as you want it to, because TiddlyWiki macros do not "return text" that can be glued together and then processed to render content as browser DOM elements... rather, each macro is responsible for rendering their own output directly as DOM elements. Thus, your output would never be rendered as a a single external URL link. Fortunately, there is a way to achieve exactly the result you want; i.e., dynamically-generate a URL, based on text extracted from other tiddlers, and then render that URL as an external link in your content. First, install this plugin: http://www.TiddlyTools.com/#InlineJavascriptPlugin Then, you can write something like this: <script> var tids = store.getTaggedTiddlers("portfolj"); var list1=[]; for (var t=0;t<tids.length;t++) list1.push(tids [t].text); var tids = store.getTaggedTiddlers("skuggportfolj"); var list2=[]; for (var t=0;t<tids.length;t++) list2.push(tids [t].text); return "http://customer.morningstareurope.com/se/folksamweb/ comparefund/default.aspx?cid="+list1.join('|')+","+list2.join('|') +"&onlyclient=1&clientattributes=127"; </script> The 'return value' from the script (i.e., a text string containing the fully-assembled URL) is automatically 'wikified' to render the desired link. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

