Fwd: Alias variable

51 views
Skip to first unread message

andrew.j.harrison84

unread,
Mar 4, 2013, 1:20:52 PM3/4/13
to tiddl...@googlegroups.com

I'm trying to include text stored in an options.txtUsername variable into an alias using the aliasplugin. I have tried creating a tiddler with <<message options.txtUsername>> but when I try to transclude the tiddler or just the variable into the alias, it doesn't work. I don't know how. Can anyone help me figure out how to do this?

---------- Forwarded message ----------
From: "andrew.j...@hotmail.com" <andrew.j...@hotmail.com>
Date: Mar 4, 2013 6:40 AM
Subject: Fwd: Alias variable
To: "andrew.j....@gmail.com" <andrew.j....@gmail.com>

<<alias showgloss {{"<<tiddler ShowPopup with: [[%0]] [[%1]] [[Click
to show definition]]\>\>"}}>>

-------- Original Message --------
Subject: Alias variable
From: "andrew.j.harrison84" <andrew.j....@gmail.com>
To: andrew.j...@hotmail.com
CC:

<<alias myStyle {{"{{myStyle{<<tiddler [[%0]]\>\>\}\}\}"}}>>

PMario

unread,
Mar 5, 2013, 8:04:12 AM3/5/13
to TiddlyWiki
Hi Andrew,
Do you use a plain TiddlyWiki or is it at TiddlySpace? If it is
tiddlyspace, the evaluated macro parameters are deactivated by
default.
-m

andrew.j.harrison84

unread,
Mar 5, 2013, 9:37:26 AM3/5/13
to tiddl...@googlegroups.com

I'm using a plain tiddlywiki trying to get options.txtUserName to render it's text in my alias macro. When I click on the link it creates, it copies text to the clipboard.

--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Tobias Beer

unread,
Mar 5, 2013, 9:46:53 AM3/5/13
to tiddl...@googlegroups.com
Hi there,

Would it work to use the text itself instead of the message macro? Obviously, you can't just embed one macro into another.

<<alias showgloss {{" foo " + options.txtUsername + " bar "}}>>

Cheers, Tobias.

andrew.j.harrison84

unread,
Mar 5, 2013, 10:48:39 AM3/5/13
to tiddl...@googlegroups.com

Hi Tobias,
It was an interest thought but renders as Error in macro <<alias>>. I am using 2.7.0 but I'm running IE9 if that matters. Thank you again for your help. I'm still searching for a solution.

--

Eric Shulman

unread,
Mar 5, 2013, 1:10:22 PM3/5/13
to TiddlyWiki
> <<alias showgloss {{" foo " + options.txtUsername + " bar "}}>>

the variable is "config.options.txtUsername"... thus:

<<alias showgloss {{" foo " + config.options.txtUsername + " bar "}}>>

-e

Tobias Beer

unread,
Mar 5, 2013, 1:43:38 PM3/5/13
to tiddl...@googlegroups.com
Hi Eric,

the variable is "config.options.txtUsername"...  thus:
<<alias showgloss {{" foo " + config.options.txtUsername + " bar "}}>> 
 
Well, of course. Never hurts to test the real thing [1]... which I'm currently not using; then you'd notice when things don't work as expected. Lazyness can be a bitch. :-D

Tobias.

Reply all
Reply to author
Forward
0 new messages