Actually, I think there's mistakes in my and Martin's forms. For one
thing we haven't set target to the page we want this done. Second I
introduced inconsistencies between calMonth & Month, calYear & Year
that need to be consistent.  Try this one for creating dated pages...

[t][form]
[r][c]Date: [c][text time size=30]
[r][c]Title: [c][text title size=30]
[r][c]Notes: [c][box content cols=40 rows=8][box]
[r][c][c right][submit]
[session time_2 '{=time}|%Y.%m.%d']
[session target todos.{=time_2}.#]
[session create {=content}]
[session savedata title]
[form]
[t]

[(search group=todos.* template="<(breadcrumb {+p} name=none)>: {+:title}")]

Just enter anything in for the date, like Sept 16, 2008, or
12/25/2008, +3 days or even yesterday/tomorrow.

Oh, in the process, I came up with some ways to improve the breadcrumb
function. Not really bugs, just enhancements. And I cut the code about
in half!  So try making this fix before running my form above. It will
enhance the results.  Just open up
boltwire/barn/scripts/functions.php, scroll down and replace the
current breadcrumb function with this. It will be in the next release.

function BOLTFbreadcrumb($args, $zone='') {
        global $pageLink;
        if (isset($args['page'])) $page =
BOLTpageshortcuts(BOLTfilter($args['page'], 'page'));
        elseif (isset($args[''][0])) $page =
BOLTpageshortcuts(BOLTfilter($args[''][0], 'page'));
        else $page = $pageLink;
        $separator = isset($args['separator']) ? $args['separator'] : ' > ';
        $parts = explode('.', $page);
        foreach ($parts as $p) {
                $link = ltrim("$link.$p", '.');
                $out[] = "[[?$link|+]]";
                }
        if ($args['name'] != 'link') $out[count($parts) - 1] = $p;
        if ($args['name'] == 'none') unset($out[count($parts) - 1]);
        return implode($separator, $out);
        }

Cheers,
Dan


On Fri, Dec 19, 2008 at 5:14 AM, Martin <[email protected]> wrote:
>
> You can put the form above on a page to direct the search output.
>
> So you have a select form for dates and a table of values which can be
> changed via the select form.
>
> [form]
> Select date: [select Year default='{:calYear}']
> [option '2008']2008
> [option '2009']2009
> [select][select Month default='{:calMonth}']
> [option 'January']January
> [option 'February']February
> [select]
> [submit]
> [session savedata Month,Year]
> [form]
>
> [(search group=tasks.{:year}.{:month}*)]
>
> Greetings, Martin
> >
>

--~--~---------~--~----~------------~-------~--~----~
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