Using Strextext macro

91 views
Skip to first unread message

greg...@sunyit.edu

unread,
Oct 21, 2016, 12:05:26 PM10/21/16
to TiddlyWiki
Hi, I'm trying to use the Strex macro http://tid.li/tw5/hacks.html#TextStretch and I'm having problems with state.

https://gregork4.github.io/Strex.html#Strex%20Example

Does anyone have any suggestions for how to fix this?

Thanks!

Thomas Elmiger

unread,
Oct 21, 2016, 4:20:27 PM10/21/16
to TiddlyWiki
Hi Greg…(?)
As the author of the strex macro I would be happy to help, but I can’t load your wiki on my mobile.
Did you follow the installation instruction and install all required tiddlers? Could you describe the problem you are facing?

Kind regards,
Thomas

greg...@sunyit.edu

unread,
Oct 21, 2016, 5:19:27 PM10/21/16
to tiddl...@googlegroups.com

Hi Thomas,

Thanks. I did follow the installation instructions and installed the four required tiddlers and TextStretch link.

My goal is to list multiple related tiddlers and have their content appear as stretch text, and I’ve had success so far. However, when I click on the button to open the text of a single tiddler, all the tiddlers in the list open. I’d like for each button to be tiddler-specific.

Here’s my code:

<$list filter="[tag[233:Animal Abolitionism]]">
 
<
<strex "{{!!text}}" "{{!!title}}">>
 
</$list>

Thanks!

Kira

Thomas Elmiger

unread,
Oct 21, 2016, 5:36:48 PM10/21/16
to TiddlyWiki
Hi Kira (sorry, I was guessing from your partially available email before)

The problem is: I use the first parameter as an id. The way TiddlyWiki works, in your case the id is always "{{!!text}}".

I tried to circumvent this like this (but get one unexpected entry):


<$list filter="[tag[233:Animal Abolitionism]]">
<$wikify name="id" text={{!!text}}>

<<strex $(id)$ "{{!!title}}">>

</$wikify>
</$list>

Good luck!
Thomas

Thomas Elmiger

unread,
Oct 21, 2016, 5:52:05 PM10/21/16
to TiddlyWiki
Nailed it: It’s the kind of quotation marks in your tiddler(s): "

When i change the quotes in the last sentence of your tiddler "Moral Justification", the list looks o.k. Like this:

This is a case in which I have to do something morally wrong in order to do the right thing.


Hope, this helps.

Thomas Elmiger

unread,
Oct 21, 2016, 6:05:50 PM10/21/16
to TiddlyWiki
By the way: to show tiddlers in a better way in lists (opening list items like in your example) I made the listreveal plugin you find on my plugin page: http://tid.li/tw5/plugins.html – but be careful, it will change soon and it is not documented yet. It might take some days/weeks until I find the time …

All the best!
Thomas

greg...@sunyit.edu

unread,
Oct 21, 2016, 7:40:55 PM10/21/16
to TiddlyWiki
Hi Thomas,

(no problem! my email's not clear) This works! Except for that one entry, but thank you very much. I didn't know the id worked that way...

Kira

greg...@sunyit.edu

unread,
Oct 21, 2016, 7:43:45 PM10/21/16
to TiddlyWiki
Awesome! Yeah, when those quotation marks are deleted it works fine.

Thanks for your help!

greg...@sunyit.edu

unread,
Oct 21, 2016, 7:46:39 PM10/21/16
to TiddlyWiki
listreveal is very neat. I've installed it and have started playing with it - but I'll be careful!

Have a great weekend,
Kira
Reply all
Reply to author
Forward
0 new messages