Hi TwWizards

I'd like to be able to retrieve a field list like: [[item one]] [[item 
two]] as a list without "[[]]" (item one item two).

[[ThisTiddler]] 
\define appendButton(now, add, title)
<$button set="SomeTiddler" setTo="$now$$add$"> $title$ </$button> 
\end
\define sentences(category, sentences)
<$macrocall $name="appendButton" now={{SomeTiddler}} add="$sentences$" 
title="$category$"/>
\end

<$macrocall $name="sentences" category="Category" 
sentences={{ThisTiddler!!listfield}}/>

and the list field "listfield" in "ThisTiddler" contains: [[item one]] 
[[item two]]

When I click the button titled "Category" then "[[item one]] [[item two]]" 
is added/inserted into the text field of "SomeTiddler".
I've ended up with two links when what I wanted was two sentences: item one 
item two.

How do I escape the square brackets? 


PS: The reason why I need to do it like this - is that I need to reuse the 
same list of items ("listfield") to generate another list of macros from 
the same list for each individual list item like this:

<$list filter="[list[ThisTiddler!!listfield]]" variable="type">
<$macrocall $name="appendButton" now={{SomeTiddler}} add=<<type>> 
title="<<type>>"/></$list>

(This works fine :-))

Example 
<http://xn--mns-ula.dk/udtalelser/samlet/#SomeTiddler:SomeTiddler%20ThisTiddler%20%5B%5BEdit%20listfield%20of%20ThisTiddler%5D%5D>

Hope my question makes sense?

Cheers Måns Mårtensson

-- 
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.

Reply via email to