Message from discussion
Gantry/Bigtop newb needs help
Received: by 10.236.121.208 with SMTP id r56mr440978yhh.80.1308215993234;
Thu, 16 Jun 2011 02:19:53 -0700 (PDT)
X-BeenThere: gantry@googlegroups.com
Received: by 10.150.190.1 with SMTP id n1ls126732ybf.7.gmail; Thu, 16 Jun 2011
02:19:52 -0700 (PDT)
Received: by 10.236.176.165 with SMTP id b25mr426237yhm.84.1308215992726;
Thu, 16 Jun 2011 02:19:52 -0700 (PDT)
Received: by 10.150.33.26 with SMTP id g26msybg;
Wed, 15 Jun 2011 11:17:53 -0700 (PDT)
Received: by 10.236.37.164 with SMTP id y24mr31487yha.45.1308161873628;
Wed, 15 Jun 2011 11:17:53 -0700 (PDT)
Received: by 10.236.37.164 with SMTP id y24mr31486yha.45.1308161873568;
Wed, 15 Jun 2011 11:17:53 -0700 (PDT)
Return-Path: <john.wei...@knology.com>
Received: from mailtwo.knology.com (mailone.knology.com [24.214.226.11])
by gmr-mx.google.com with ESMTP id a28si417344yhk.4.2011.06.15.11.17.53;
Wed, 15 Jun 2011 11:17:53 -0700 (PDT)
Received-SPF: pass (google.com: best guess record for domain of john.wei...@knology.com designates 24.214.226.11 as permitted sender) client-ip=24.214.226.11;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of john.wei...@knology.com designates 24.214.226.11 as permitted sender) smtp.mail=john.wei...@knology.com
Received: from kno-ex3.knology.com (kno-ex3.knology.com [172.22.99.104])
by spamstop.knology.com (Postfix) with ESMTP id 6A581540D3;
Wed, 15 Jun 2011 14:17:53 -0400 (EDT)
Received: from EXCH2.knology.com ([172.22.50.30]) by kno-ex3.knology.com with Microsoft SMTPSVC(6.0.3790.1830);
Wed, 15 Jun 2011 14:17:53 -0400
Received: from EXCH1.knology.com ([fe80::48b3:55ab:2328:13d6]) by
EXCH2.knology.com ([fe80::34c2:41be:eb:5ea9%17]) with mapi id 14.01.0270.001;
Wed, 15 Jun 2011 14:17:52 -0400
From: John Weigel <John.Wei...@knology.com>
To: "gantry@googlegroups.com" <gantry@googlegroups.com>
CC: "wfdud...@gmail.com" <wfdud...@gmail.com>
Subject: Re: [gantry] Gantry/Bigtop newb needs help
Thread-Topic: [gantry] Gantry/Bigtop newb needs help
Thread-Index: AQHMK4NgkImMtjjgfUqBuPe1S85ET5S+psmAgAACfgA=
Date: Wed, 15 Jun 2011 18:17:51 +0000
Message-ID: <CA1E60F3.EE2%John.Wei...@knology.com>
In-Reply-To: <CA1E5BE6.EC1%John.Wei...@knology.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.22.50.40]
Content-Type: text/plain; charset="us-ascii"
Content-ID: <F22F5B5501CAA645A53FA95DBF814...@knology.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginalArrivalTime: 15 Jun 2011 18:17:53.0422 (UTC) FILETIME=[8AFC02E0:01CC2B88]
Sorry just realized there were couple typos in my example. It should be:
controller Customer is CRUD {
controls_table customer;
method do_main is main_listing {
livesearch 1;
}
}
table customer {
field id {
is int4, primary_key, auto;
}
field name {
is varchar;
label Name;
html_form_type text;
searchable 1;
}
}
On 6/15/11 1:08 PM, "John Weigel" <John.Wei...@knology.com> wrote:
>Hi Bill,
>
>Gantry is still alive - more or less. You'll want to use the version in
>subversion as the version in cpan is somewhat out of date. There is some
>built-in search functionality. You can set livesearch to 1 inside your
>do_main method and you'll get a search box on the results page. Setting
>searchable to 1 inside of your table field block will make it so that
>column is searched. Here's a simple example:
>
>controller Customer is CRUD {
>
>
> method do_main is main_listing {
> controls_table customer;
> livesearch 1;
> }
>
>}
>
>table bp_ach_errors {
> field id {
> is int4, primary_key, auto;
> }
> field name {
> is varchar;
> label Name;
> html_form_type text;
> searchable 1;
>
> }
>}
>
>
>You'll also need to include the gantry.js file on your page. The searching
>uses the livesearch method in there.
>
>-John
>
>On 6/13/11 3:19 PM, "William Dudley" <wfdud...@gmail.com> wrote:
>
>>Hi,
>>
>>I hope that Gantry is still a live project -- activity seems to have
>>dried up 3 years ago, including bug fixes.
>>
>>I've been working on using Bigtop/Gantry to build a simple CRUD
>>interface for my company. Just customers
>>and invoices and such, nothing terribly tricky. And I've been
>>programming in Perl for quite a while, but am
>>NOT more than passing familiar with MVC, having used Rails for a bit
>>at the last job.
>>
>>So -- there is no "search" function in Bigtop/Gantry? None at all?
>>There's not even much mention of
>>it in any of the docs, including Phil's book.
>>
>>Can somebody point me to a *simple* example of adding search to a
>>*simple* application, like any of the
>>tutorial examples? I just have no idea where the various pieces go,
>>and am frankly overwhelmed by the
>>sheer number of Perl modules needed to do anything.
>>
>>Thanks,
>>Bill Dudley
>>avalon telecom
>>
>>(Oh yeah - fresh install of Bigtop/Gantry from CPAN, Linux box, mysql
>>db, and I doubt any of this matters.)
>>
>>--=20
>>You received this message because you are subscribed to the Google Groups
>>"Gantry" group.
>>To post to this group, send email to gantry@googlegroups.com.
>>To unsubscribe from this group, send email to
>>gantry+unsubscribe@googlegroups.com.
>>For more options, visit this group at
>>http://groups.google.com/group/gantry?hl=3Den.
>>
>>
>