Hi Felix,

...
> Maybe it is not suited for your case but I was refering to the "Accordion 
> or Slider" in tiddlywiki.com/#RevealWidget which uses no match to create 
> an if-else.
>  
> ...
> Yes it does, but it doesn't wrap its children into a p element like the 
> reveal widget. I mean, you are using the reveal widget to create a 
> conditional statement so it is not necessary to have a p element inside the 
> button. 


Now I understand what you meant.

Not sure if it works but something like this...

 
You pointed me in the right direction. I managed to pass regexp to the 
action widget. Here is the code that works:

tags:
title: $:/_template/geo-button

<$set name="thepos" value="51.47685, -0.00053">
<$button>
<$action-sendmessage $message="tm-modal" $param="$:/_template/geo-prompt"/>
<$list filter="[field:title[$:/_template/geo]regexp:_position[^\s*$]]">
<$action-setfield $tiddler={{!!title}} $field="_position" $value=<<thepos>>
/>
</$list>
{{$:/_template/geo}}
</$button>
</$set>


Beautifully done. Thanks a lot.
Mehdi



On Thursday, June 18, 2015 at 5:14:42 PM UTC+2, Felix Küppers wrote:
>
> I meant
>
> <$list filter=[field:title[$:/_template/geo]has[_position]">
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5ebd5ca4-5ddc-4ea4-bd6e-34e9c2be5c77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to