Not sure if this is what you are asking, but remember the order of
operations. Functions can be written in 3 ways, and they are processed in
this order:

1. {(function)}
2. [(function)]
3. <(function)>

The latter one, btw, is the only one that is processed after conditionals,
making it important for things like [if condition]<(forward some.page)>[if]

In your case you want the function output before the search function is
processed, so try this:

[(search dir='files/{(thefunction)}' type=png fmt="[^{+p}
dir='{(thefunction)}'^]")]

The dir gets returned first, then BoltWire sweeps through again and does
the search.

Cheers,
Dan



On Thu, Feb 27, 2014 at 3:44 PM, jdoe <[email protected]>wrote:

> Hello.
>
> what would be the way to assign the return value of a plugin-in function
> to a variable *without* having to submit a form?
>
> What I am trying to do (using 4.06): Essentially I have a nicely working
> file search that displays images in a variable subfolder:
>
> [(search dir=files/{:thefolder} type=png fmt="[^{+p} dir={:thefolder}^]")]
>
> Now the name of that subfolder comes from a plugin function, and I am
> using a form to assign the function result to the variable:
>
> [form]
> [text thefolder [(thefunction)]]
> [submit]
> [command savedata thefolder]
> [form]
>
> While I'm just not seeing it, I'm sure there is a likely simple BoltWire
> answer to feed function results directly into the search using a variable
> (the function should only be called once on a page, while the return value
> is required more than once).
>
> Thanks in advance for any help on this.
>
> JF
>
>  --
> You received this message because you are subscribed to the Google Groups
> "BoltWire" 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/boltwire.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" 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/boltwire.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to