No, it's not that, if you want to disable a field you must not write it in
the "display" option
  list:
   display: [id, name, weighting, created_at, updated_at,
published];
 h0ere you display all the fields in the list action.
i think that your generator.yml is correct

2009/9/9 smellycat37 <charley.mail...@gmail.com>

>
> Thanks for your answer but I don't have any identation character... I
> can see all the character (space, tab, \r, \n) in my IDE...
> Is it the good syntax for adding to a field the html param
> disabled="disabled" ?
>
> On 9 sep, 14:12, chakir ezziani <ezziani.cha...@gmail.com> wrote:
> > Pay attention to the indentation bug, you must not have a (tabulation) in
> > your file
> >
> > 2009/9/9 smellycat37 <charley.mail...@gmail.com>
> >
> >
> >
> > > hi,
> >
> > > I try to use the symfony admin generator, do you know how disable a
> > > field in a the form?
> >
> > > I tried this in the generator.yml file but it doesn't work :
> > >    config:
> > >      actions: ~
> > >      fields:
> > >        created_at: {params: disabled=true}
> > >        updated_at: {params: disabled=true}
> > >      list:
> > >        display: [id, name, weighting, created_at, updated_at,
> > > published]
> > >      filter:
> > >        class: false
> > >        #display: [name]
> > >      form:    ~
> > >      edit:
> > >        display:
> > >          main: [published, updated_at, created_at]
> > >          display: [name, weighting, imported]
> > >      new:     ~
> >
> > > Good bye,
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to