Ok. Found another solution:

make different forms for the frontend and the backend apps.
I didn't know it we can do this. I thought the lib/
form/...Form.class.php was dedicated to the frontend.

Whatever, I worked on this idea, but I still have a problem.

According to http://www.symfony-project.org/jobeet/1_2/Propel/en/12
and 
http://devthought.com/blog/2009/02/custom-fields-in-editnew-admin-generator-views-in-symfony/
I have to create a class in the lib directory of my module. This class
(whitepapersGeneratorConfiguration) must extend
BaseWhitepapersGeneratorConfiguration.

BUT ... this "BaseWhitepapersGeneratorConfiguration" doesn't exist !

I run grep and find commands in the whole project in order to find
these classes for others modules, but nothing is find.
They were not generated ...

How can I do ?
What can I do.

Help or suggestion would be appreciated.
Thanks


On Jun 10, 3:31 pm, Pierre Lecocq <[email protected]> wrote:
> Hi all,
>
> I have a model Whitepaper. This model is linked to a user
> (sfGuardUser).
> I want, in the backend, to get a select tag (a list) that allows, when
> I create a new post to choose / modify a user.
>
> The fact is that if I use, in the edit section of the generator.yml:
>  - a field "user", I have a disabled input tag.
>  - a field "user_id", I have nothing ! the field disappears.
>  - a field "sf_guard_user", I have a disabled input tag.
>  - a field "sf_guard_user_id", I have a 500 error (the BaseWhitepaper
> doesn't have the sf_guard_user_id field).
>
> One interesting thing: in the filters (list action), I have the good
> select tag with all the users.
> But Why not in the edit action ?
>
> Here is my generator.yml:
>
> generator:
>   class:              sfPropelAdminGenerator
>   param:
>     model_class:      Whitepaper
>     theme:            default
>
>     list:
>       display: [=title, category, sf_guard_user, created_at, _extras]
>       object_actions:
>         _edit:        ~
>         _delete:      ~
>       max_per_page: 40
>       filters: [title, category_id, user_id, created_at]
>
>     edit:
>       display: [title, category_id, user_id, layout_id, caption]
>
> Any clue ?
> Any solutions ?
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to