Extending Admin Gen


Table of Contents

Admin Generator: how to disable interaction 
Admin Generator: how to disable interaction 
Admin Generator: how to disable interaction 
Override save() and delete() methods in the admin generator 
Override save() and delete() methods in the admin generator 
Override save() and delete() methods in model 
meaningful lookup table drop-down 
meaningful lookup table drop-down 
meaningful lookup table drop-down 
Limit drop down list for filter 
Limit drop down list for filter 
Limit drop down list for filter 
[admin generator] Order for dropdown list 
[admin generator] Order for dropdown list 
Sorting in edit form - admin generator 
Sorting in edit form - admin generator 
[Admin Gen] Order in Many-to-Many List 
[Admin Gen] Order in Many-to-Many List 
[Admin Gen] Order in Many-to-Many List 
Sort entries in an admin_double_list in admin generator 
Admin Generator: Further enhancement beyond symfony's capability 
Admin Generator: Further enhancement beyond symfony's capability 
Adding show action in the administration-generated modules 
Adding show action in the administration-generated modules 
Adding show action in the administration-generated modules 
How to change admin theme in 1.0 
How to change admin theme in 1.0 
How to change admin theme in 1.0 

Admin Generator: how to disable interaction 

http://www.symfony-project.org/forum/index.php?t=msg&th=8349

The books covers how to add a custom interaction, but how can I disable an existing interaction? e.g., how can I stop the create / delete interaction from showing?

Admin Generator: how to disable interaction 

http://www.symfony-project.org/forum/index.php?t=msg&&th=8214&goto=34352#msg_34353

> . . . I want the create button not shown to everybody, So I just tried:
>
>         _create:      { credentials: [no_exist] }

It works.

> But the create button is still there.

do not log in as admin.

Admin Generator: how to disable interaction 

Yes, if you are using sfGuard and logged in as admin though (because you then have all rights (or actually bypassing the credential system)), it will not work.

To remove/disable all actions for everyone you should declare an empty array:

list:
  actions: []

documented on: 28 August 2007, lvanderree