Thanks Daniel, I was focused on the 'new: ~' portion of the generator and didn't consider the list actions. Thanks also for hint on how to redirect. Time for me to review, again, Jobeet. - Michael
On Sun, Apr 18, 2010 at 10:19 AM, Daniel Lohse <annismcken...@googlemail.com > wrote: > Hey Michael, > > where do you want to suppress this, I guess in the list view? You should > really have a look into the symfony 1.3/1.4 Reference Guide (here: > http://www.symfony-project.org/reference/1_4/en/06-Admin-Generator). > > Supressing the add button is done by disabling the actions in the list > view: > > generator: > param: > config: > actions: ~ > fields: ~ > list: > actions: {} > filter: ~ > form: ~ > edit: ~ > new: ~ > > Also, to redirect to another URL when the user tries to add a new record by > calling localhost/your_module/new.html, you can just add the method > 'executeNew()' to the YourAdminGeneratorActionsClass and do > '$this->redirect('someURL')' inside it. But that's also all described in the > Reference Guide so give that a thorough read. The Jobeet tutorial is also a > good start. :) > > > Cheers, Daniel > > On 18.04.2010, at 20:25, Michael Hodges wrote: > > Hello all, > > I would like to suppress the option to add a new record for one of my > modules. This doesn't seem to be possible using the module's generator.yml, > like is possible for suppressing the option to filter the list. > > As an alternative, if I could somehow redirect url 'transaction/new' to > another url, that would be okay too. I'm not yet entirely clear on how > routing.yml works, but it doesn't look like I can use it to redirect to a > different module. > > Thanks for any help. > > - Michael > > Symfony 1.4.4 with Doctrine > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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 > > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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