Hi Astrid
Thank you for having a look at this - and for explaining state of things
with examples I understand :-)
For a moment I thought I found a workaround by simply adding this snippet:
"\define tv-wikilinks() no" to suppress wikilinks in "SomeTiddler - this
however also suppresses parsing of fieldvalues - because they are enclosed
in double square brackets - I guess....
Unfortunately I need to be able to use shorthand like {{see_fieldvalue}} in
my sentences to make my system work.
See example
<http://xn--mns-ula.dk/udtalelser/samlet/#SomeTiddler:SomeTiddler%20ThisTiddler%20%5B%5BEdit%20listfield%20of%20ThisTiddler%5D%5D>
Cheers Måns Mårtensson
Den fredag den 27. februar 2015 kl. 16.31.56 UTC+1 skrev Astrid Elocson:
>
> Hi Måns,
>
> I suspect the only way to achieve this at present is to use a JavaScript
> macro.
>
> You can generate the desired string via *<$list
> filter="[list[ThisTiddler!!listfield]]">{{!!title}} </$list>*. And if you
> define a macro *m* with that as its value, you can then say *<$macrocall
> $name="m" $output="text/plain"/>* to obtain the string as plain text.
>
> But you can't pass a macrocall widget as an argument to a macro, i.e. you
> *can't* say:
>
> *<$macrocall $name="sentences" category="All items" sentences=<$macrocall
> $name="m" $output="text/plain"/>/>*
>
> This is because you can't pass one widget as an attribute to another.
>
> It would be brilliant if the macrocall widget provided a way to assign its
> result to a specified variable. You'd then be able say things like this:
>
>
> *<$macrocall $name="m" $output="text/plain" $variable="sentences">*
> *<$macrocall $name="sentences" category="All items"
> sentences=<<sentences>>/>*
> *</$macrocall>*
>
> I can think of lots of places where that would be extremely useful.
>
> The set widget has a filter option which almost does what you want:
>
> *<$set name="sentences" filter=*
> *"[list[ThisTiddler!!listfield]]">*
> *<$macrocall $name="sentences" category="All items"
> sentences=<<sentences>>/>*
>
> *</$set>*
>
> But it has the side effect of wrapping double square brackets round any
> items that contain spaces, which rather defeats the point here.
>
> It would be nice if there was a *join* filter operator for performing
> concatenation (with a separator as its parameter), so you could say this:
>
> *<$set name="sentences" filter=**"[list[ThisTiddler!!listfield]join[ ]]">*
> *<$macrocall $name="sentences" category="All items"
> sentences=<<sentences>>/>*
> *</$set>*
>
> – æ
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.