Your plugin seems interesting.
However, unless I miss something, it doesn't seem related to the admin
generator.
Do you plan to provide the same features than admin generator with more
flexibility ?
Will admin generator become useless with sfGridPlugin ?
Or can sfGridPlugin be integrated in the admin generator ?
Thanks


2009/2/13 Leon (sfExtjsThemePlugin) <[email protected]>

>
> I would like to point you to the sfGridPlugin Bernhard and me are
> working on.
>
> This plugin will provide similar functionality for paginated
> resultsets (tables) as the sfForms Object for forms. It will be
> capable of processing arrays, propel, doctrine, xml, csv and anything
> else you write an adapter for :D
>
> it still is in early development, but already looks promising ;)
>
> And Example of the current code is:
>
>    $source = new sfDataSourcePropel('Message'); //this could also be
> a criteria object, other adapters (for arrays and doctrine exist as
> well)
>
>    $this->grid = new sfWebGrid($source); // a grid object
>    $this->grid->bind($request);                 // bound to the
> request instance in your action
>
>    $this->grid->setColumns(array('message.TITLE'));   // provide the
> columns you want to see (including custom columns)
>    $this->grid->setWidget('message.TITLE', new sfWidgetLink($this-
> >grid, 'view', 'message.MESSAGE_ID', array('message.MESSAGE_ID' =>
> 'message_id')));  // overrule the default widget for a column, For
> example with a widget that can render links
>
>    $this->grid->setFormatterName('html');   // make it render to
> html, new formatters can be defined as well, for example to render as
> json
>
>
> Leon
>
> On Feb 12, 10:36 pm, Damien Lepage <[email protected]> wrote:
> > Hi,
> >
> > I would like to know if the enhancements of Admin Generator for Symfony
> 1.3
> > have already been discussed because I may have a few to suggest.
> >
> > In fact, I started a development on Symfony 1.2 and noticed some missing
> > features in the doctrine admin generator. So, I'm currently working on a
> > plugin to provide those features. However my plugin will be compatible
> only
> > with Symfony 1.3. I know it sounds odd to start a project on Symfony 1.3
> but
> > I switched to an early revision of Symfony 1.3 because I really wanted
> the
> > request in preExecute method of sfAction (
> http://trac.symfony-project.org/ticket/5271).
> >
> > So I extended the sfDoctrineGenerator to get 3 important features for me:
> >
> >    - chain admin modules (apply a dynamic prefix path)
> >    *ex: manage the comments of a blog post with URL
> >    http://domain.com/posts/:post_id/comments
> >
> >    *
> >    - refine the list query with parameters*
> >    ex: display only the comments for the provided post (it is strongly
> >    related to the chain modules feature)**
> >
> >    *
> >    - sort on custom column with a parameter other than the field name
> >    *ex: sort username provided by field sfGuardUser with URL like **
> >    http://domain.com/posts/:post_id/comments/sort/user/sort_type/asc*
> >
> > Here is what my generator.yml looks like (only the additional
> configuration)
> >
> > generator:
> >   class: sfDoctrineAdvancedGenerator
> >   param:
> >     route_params:          [ post_id ]
> >
> >     config:
> >       list:
> >         table_refine_method:
> >           name: addUserFilterQuery
> >           params: [ post_id ]
> >         display: [sfGuardUser]
> >         fields:
> >           sfGuardUser: {sort_url_param: user, sort_method:
> orderByUserName}
> >
> > The route_params parameter provides an array of parameters which are
> > propagated in all links. The value is obtained from the request.
> > The table_refine_method parameters provide a method to call on doctrine
> > table and the parameters to pass to this method in order to refine the
> > query.
> > The sort_url_param and sort_method parameters provide the parameter to
> use
> > in the URL and the method to call on doctrine table to sort on a custom
> > field.
> >
> > My plugin works only with Doctrine.
> > What should I do with this:
> > - Open a ticket for enhancement on sfDoctrinePlugin with my suggested
> > enhancements and the patch to apply?
> > - Wait for Symfony 1.3 to be released to publish my plugin?
> > - Something else?
> >
> > Thanks,
> >
> > Damien
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to