On Saturday, January 2, 2016 at 8:32:51 PM UTC-8, David Allen wrote:
>
> The problem is, the value that shows up in the new event tiddler does not 
> contain the square brackets, which makes it not work with the filter 
> above.  What I'd like is some way to construct a string that has square 
> brackets along with the field value and can be passed into a widget and 
> work correctly.
>

> When I do [[{{!!planet}}]], the result is exactly that string, 
> [[{{!!planet}}]].  When I try to put it into a widget, it comes up as 
> [[$parameter$]].  I'd like to find a way to construct a string literal, but 
> I'm not sure how to do so.
>
> Can anyone help me with this?
>

You can use the <$set> widget with the title filter.  This will add 
brackets to the field value if it contains spaces.  The result can be 
passed into a widget param.  For example:
<$set name="result" filter="""[title{!!somefield}]""">
<$text text=<<result>>/>
</$set>

let me know if this helps

enjoy,
-e

-- 
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/2b161ac9-b96d-492c-a651-716d499a7ace%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to