Re: Custom categories element for QuickForm

From: Date: Sun, 18 Sep 2005 20:19:45 +0000
Subject: Re: Custom categories element for QuickForm
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21033@lists.php.net to get a copy of this message
No, I need to produce categories that are laid out like the following: [x] Articles [x] Reviews [x] Previews [x] Company [x] Misc [x] Misc [x] News With each of the x's being a checkbox. The issue here is figuring out how to get them to be laid out in the tree like structure as they are in the database. I am not sure what the best approach to doing this is. I am not sure weather to use a custom element or if it can be completed by using other means. -Ben On 9/18/05, Justin Patrin <papercrane@gmail.com> wrote: > On 9/17/05, Ben Sytko <bsytko@gmail.com> wrote: > > Hello everyone, > > > > I just started to use QuickForm recently and I like it, however, I > > want to create a way to select categories in a certain way and I am > > not sure how to approach it. > > > > I'm working on a CMS, and for it I have multiple categories and sub > > categories that the user can select for each article. Now, I need to > > somehow, create a list of categories and sub categories in QuickForm. > > I was thinking of using a check box for each and its name next to it, > > and then the user can check each check box that corresponds to the > > category they want the article in. > > > > I am not sure how to approach this using QuickForm. Perhaps somebody > > has already made something like this someplace else and can point me > > in the right direction. I was thinking I would need to create a custom > > element somehow, but I'm not sure if I should create one off of the > > group element or the check box element. > > > > I think what you want is the hierselect element. > > -- > Justin Patrin >

« previous php.pear.general (#21033) next »