[tw] Re: Apply link label and redirection based on input

2017-07-15 Thread David Allen
That seems to have worked, thanks

On Saturday, July 15, 2017 at 5:41:51 PM UTC-5, Eric Shulman wrote:
>
> On Saturday, July 15, 2017 at 3:11:38 PM UTC-7, David Allen wrote:
>>
>> Here's what's strange about this.  If the tiddler fetched by 
>> listed[redirect] has a space in it, the <$list> widget uses it just fine, 
>> but the <$set> widget adds double square brackets around the title.  I've 
>> been unable to find a reliable way to strip the double brackets, and it 
>> makes the process of applying a label to a link impossible.
>>
> I've tried using Tobias's setvars widget, same results as the set widget.
>> If anyone knows of some way to fix this, please let me know!
>>
>
> if you pass your result through the <$wikify> widget, it will render the 
> "plain text" of the link, without any surrounding brackets.  Something like 
> this:
>
> <$wikify name="moose" text=<>>
><$link to=<> >
>   <$macrocall $name="get_clean" input=<>/>
>
>  
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas" (tm)
> InsideTiddlyWiki: The Missing Manuals
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e4460ad5-93ca-453c-816a-b6710a6ea1bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Apply link label and redirection based on input

2017-07-15 Thread Eric Shulman
On Saturday, July 15, 2017 at 3:11:38 PM UTC-7, David Allen wrote:
>
> Here's what's strange about this.  If the tiddler fetched by 
> listed[redirect] has a space in it, the <$list> widget uses it just fine, 
> but the <$set> widget adds double square brackets around the title.  I've 
> been unable to find a reliable way to strip the double brackets, and it 
> makes the process of applying a label to a link impossible.
>
I've tried using Tobias's setvars widget, same results as the set widget.
> If anyone knows of some way to fix this, please let me know!
>

if you pass your result through the <$wikify> widget, it will render the 
"plain text" of the link, without any surrounding brackets.  Something like 
this:

<$wikify name="moose" text=<>>
   <$link to=<> >
  <$macrocall $name="get_clean" input=<>/>
   
 

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas" (tm)
InsideTiddlyWiki: The Missing Manuals

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd8fe5c7-052b-4c39-af09-f5f15f895641%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.