On Mon, Sep 29, 2008 at 6:49 AM, DrunkenMonk <[EMAIL PROTECTED]> wrote:
>
> I believe i've seen a solution to this problem at least twice and
> always gone: "huh. Should remember that" and then promptly forgot.
>
> I want to have a search function that populates my side bar in the
> following way:
>
> [[a | A]]
> * [[a.a1 | meh]]
> * [[a.a2 | bleh]]
>
> without finding a.a1.subpage. In other words, a search which only
> finds the first generation children to page 'a'.
>
> Now, I would probably have implemeted this by a depth function in
> search
>
> [(search depth=2 group=a.* fmt="* [[{+p}|+]]")]
>
> But this isnt implemented, and I believe I've seen another solution,
> but I cannot remember where.
The difference between group=a and group=a.* is whether or not you
just get the children or all the descendents. So that's your easiest
solution. Of course, you don't get the parent, but that can be added
manually.
The other, wildly more powerful option, is to tie in anything you want
from the conditional engine like this:
[(search group=a if="less {+p0} 3")]
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
-~----------~----~----~----~------~----~------~--~---