I tried this before using searches, and it did not seem to work, but I
may have been wrong.

However, my current use is:
<code>
[box händelse cols=32 rows=8][(list {?bt} template=kommentar
output=escape)]
[box]

/*
[[#kommentar]]
[(template each)]{+:händelse}
[[#end]]
*/
</code>

(I run the search function once on the previous page instead of
several times on the current page)

and the result is:

test<br />test2<br />

So I guess the list function does not escape like the search action
should, even if the search action escapes?

By the way,
Is it possible to assign a variable and reach it on the same page in
boltwire, such as:

<code>
result: [(search ... )]

The result was: {result}

I repeat, {result} was the result
</code>

Because I sorely miss that functionality.

Of course, one almost has this with templates.
[(list '' fmt=test)]
/*
[[#test]]
[(search ...)]
[[#end]]
*/
hmmm. Does [(include {p}#test)] work the same way? Is that fast or
does it reload the page for the include? How does the search function
work, will this trigger a search each time, or is that cached so it
doesn't affect speed?

This could greatly simplify my code.

On Apr 19, 5:38 pm, The Editor <[email protected]> wrote:
> Actually there is a way to do it.  Check out this code:
>
> [box mypages cols=50 rows=10][(searchgroup=test count=10
> template=pagenames output=escape)][box]
>
> /*
> [[#pagenames]]
> {+p}`
> [[#end]]
> */
>
> The little backtick escapes the line return.  :)
>
> On Sun, Apr 19, 2009 at 11:07 AM, The Editor <[email protected]> wrote:
> > On Wed, Apr 15, 2009 at 6:42 AM, DrunkenMonk <[email protected]> wrote:
>
> >>> He suggested to use join
>
> >> With join, I could remove the line breaks (when using fmt, with
> >> template one can do without). I need them, I just don't want them
> >> converted to <br />
>
> >> This isn't a priority anymore, as the boxed message only needs to be
> >> human readable after I've run it through a custom plugin, so I added a
> >>searchand replace there.
>
> >> I suppose i could take the text, run it through a list command
> >> (assuming [session list] is viable)
> >> [session list "[(search...)] delimiter='<br />' join='\n'"]
> >> or something.
>
> >> It would be nice to be able to generate boltwire source from searches.
>
> > Not sure if this thread is resolved or not but I think we have some
> > problems doing this.  I tried this:
>
> > [box mypages cols=50 rows=10][(searchgroup=test count=10 join=','
> > template='{+p}')][box]
>
> > And was able to get a nice csv list of page names, but could not get
> > simple line returns. It seems the way the display functions work it
> > precludes this. And to fix it might be a bit challenging, as it get's
> > quite complex, particularly with the vertical line spacing problems we
> > have recently introduced. Looking at the code I see some changes that
> > probably could/should be made, but I will put them on a todo list till
> > I have more time.
>
> > Sorry I can't offer something better right off, but it sounds like you
> > have come up with at least a temporary working solution. We'll do
> > better eventually...
>
> > Cheers,
> > Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to