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