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?
<$set name="result" filter="""[title{!!somefield}]""">
<$text text=<<result>>/>
</$set>
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/YpM4Jw8nkdU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@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.
<$setvars _planet={{!!planet}} planet="planet[1]">
<$link to=<<planet>>><<planet>></$link>
</$setvars>--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/YpM4Jw8nkdU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@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/d8ea46b5-8fc2-4a8c-bf32-a443ae42973d%40googlegroups.com.
I just need a way to override the link widget's formatting now. Otherwise Eric Shulman's solution works beautifully.
title: any title
planet: [[Some Planet]]
{{!!planet}} <= this will be a link!title: any other title
planet: Earth
{{!!planet}} <= this will NOT be a link!Hi David,I just need a way to override the link widget's formatting now. Otherwise Eric Shulman's solution works beautifully.Unfortunately, that is not true. Although you may feel like you can avoid retrieving the title using a variable, you do need a proper reference and [[Some Title]] is not while Some Title is.
The one thing I could think is to not use any link widget at all but to transclude the planet field as is, since it already does contain the link notation, e.g. [[Some Title]]... so simply inserting that via {{!!planet}} should produce a link, e.g.:
title: any title
planet: [[Some Planet]]
{{!!planet}} <= this will be a link!However, using an editor equivalent to the tags editor, any values that do not contain spaces will be saved without double square brackets, so...title: any other title
planet: Earth
{{!!planet}} <= this will NOT be a link!So, as I or Eric suggested, you do need to retrieve the given item from a list-field and store it in a variable ...to be able to properly construct the link using the link widget.
Ergo: It is not simply a matter of styles / formatting.Best wishes,Tobias.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/YpM4Jw8nkdU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@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/0f3612fd-9210-4b26-b931-73de3c358caa%40googlegroups.com.
I think I figured it out using the set widget.
<$set name=planet
filter="[{!!planet}get[title]]"
emptyValue="{{!!planet}}"
value="<$link to={{!!planet}}>{{!!planet}}</$link>">
<<planet>>
</$set> {{||$://templates/planet-link}}
title: $://templates/planet-link
<$list filter={{!!planet}}/>