Not sure I got the idea, but if you created a custom function like
[(showpix {+p})] that output your search function, then you could
iterate through it like this. The function could be simple. Just tie
it into the search function.
{(list 0,a,b fmt="[c][(showpix {+p})]")}
If you didn't have {+p} in both the list fmt and the search fmt, you
could do it in one line.
Cheers,
Dan
P.S. Or for that matter you could try this: Not tested, but perhaps
it will give you some ideas to tinker with.
{(list 0,a,b fmt="[c][(search dir=files/covers/0 type=jpg fmt='pix'
where='covers/{+p}')]")}
And then on template.pix put
[^img:{+p1}.jpg dir=$where^]
On Mon, Mar 30, 2009 at 6:20 PM, kanesodi <[email protected]> wrote:
>
> Hi all,
>
> I can't help feeling lost. Some time a go I asked how to list images
> in subfolders. The solution was: [(search dir=files/covers/0 type=jpg
> fmt="[^img:{+p1}.jpg dir=covers/0^]")]
>
> Now I have like 28 of this lines and want to shorten it and also have
> more control over it's output.
>
> I was thinking using dir=files/covers/0 as a variable to be used in
> fmt. I tried serval and most of them lock me out. What I tried was
> like this and a few others similar:
>
> [(search dir=files/covers/0 type=jpg fmt="[^img:{+p1}.jpg dir={::dir}
> ^]")]
>
> At the moment I have a table with a few rows/cell to show all images
> and a link to view all images of one specific letter:
>
> [t]
> /* ROW 1 */
> [r][h]#[h]A[h]B
> [r]
> [c][(search dir=files/covers/0 type=jpg fmt="[^img:{+p1}.jpg
> dir=covers/0^]")]
> [c][(search dir=files/covers/a type=jpg fmt="[^img:{+p1}.jpg
> dir=covers/a^]")]
> [c][(search dir=files/covers/b type=jpg fmt="[^img:{+p1}.jpg
> dir=covers/b^]")]
> [r]
> [c][[0|view all covers]][c][[a|view all covers]][c][[b|view all
> covers]]
> [t]
>
> (note: just a section of it, the rest is the same except for the
> letters a-z)
>
> I want to turn it into something more flexible. I think I can do that
> if I know how to search recursively instead of pointing each dir=
>
> But how? any suggestions?
>
> Regards,
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---