How to create dynamic link of this type [img[$hostname%/img.jpg]

101 views
Skip to first unread message

Alex K

unread,
Jul 24, 2018, 6:04:49 AM7/24/18
to tiddl...@googlegroups.com
Tried different approaches - could not find right.

Anyone has working decision? I am on latest tw on node server.

Mark S.

unread,
Jul 24, 2018, 10:35:02 AM7/24/18
to TiddlyWiki

Text concatenation almost always calls for a macro:

\define imgh(h i) [img[$h$/$i$]]

<<imgh "https://yourhost.com" "yourfile.jpg">>

Have fun,
-- Mark

@TiddlyTweeter

unread,
Jul 24, 2018, 11:31:56 AM7/24/18
to TiddlyWiki
Mark S. wrote:
Text concatenation almost always calls for a macro:

\define imgh(h i) [img[$h$/$i$]]

<<imgh "https://yourhost.com" "yourfile.jpg">>

That looks seriously something. Trying to get my head round it :-)

J x

Mark S.

unread,
Jul 24, 2018, 11:47:43 AM7/24/18
to TiddlyWiki
Are you suggesting it's a bit terse?

It may be fatigue. I think this is the second time this week I've answered this question.

I should probably do a more thorough write-up and save it for re-use. If only I had some information system where to keep these things.

-- Mark

Alex K

unread,
Jul 24, 2018, 1:43:12 PM7/24/18
to tiddl...@googlegroups.com
Thanks! It works

@TiddlyTweeter

unread,
Jul 25, 2018, 8:44:59 AM7/25/18
to TiddlyWiki
Mark S. wrote:
... If only I had some information system where to keep these things.

 Agree. Right now its hard to build broader knowledge of TW because the fragments stay fragments.

The result is an AWFUL LOT of repetition.

J.
Reply all
Reply to author
Forward
0 new messages