Development

sfAdvancedAdminGeneratorPlugins (diff)

You must first sign up to be able to contribute.

Changes between Version 2 and Version 3 of sfAdvancedAdminGeneratorPlugins

Show
Ignore:
Author:
sorac (IP: 212.11.39.99)
Timestamp:
10/29/07 18:16:35 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sfAdvancedAdminGeneratorPlugins

    v2 v3  
    1 = sfAdvancedAdminGenerator plug-in = 
    2  
    3 The `sfAdvancedAdminGenerator` provide advanced functionalities for admin generator. 
    4  
    5 Currently, only one is the distinct configurations between create and edit action 
    6  
    7 == Installation == 
    8  
    9   * Install the plug-in 
    10    
    11     {{{ 
    12       symfony plugin-install http://plugins.symfony-project.com/sfAdvancedAdminGeneratorPlugin 
    13     }}} 
    14  
    15   * change the generator in your `generator.yml` 
    16  
    17     {{{ 
    18 generator: 
    19   class:              sfAdvancedAdminGenerator 
    20   param: 
    21     model_class:      Book 
    22     theme:            default 
    23      
    24     list: 
    25       object_actions: 
    26         _edit: 
    27  
    28     edit: 
    29       title: Edit a book 
    30       display: [author_id, title] 
    31       fields: 
    32         author_id: {params: disabled=true} ## Can't edit the author of an existing book 
    33       actions: 
    34         _list: 
    35         _save: 
    36  
    37     create: 
    38       title: Create a new book 
    39       actions: 
    40         _list: 
    41         _save: 
    42         _save_and_add: ## allow to add an other book after a creation 
    43     }}} 
    44  
    45   * Clear the cache 
    46  
    47     {{{ 
    48       symfony cc 
    49     }}} 
    50  
    51   * You're done. 
    52  
    53 == Compatibility with default symfony generator == 
    54  
    55 If no 'create' section is present in your configuration, the generator act exactly like the default generator (create action use edit configuration)  
    56  
    57 == Configuration == 
    58  
    59 The configuration is the same that the symfony default admin generation. 
    60  
    61 [http://www.symfony-project.com/book/1_0/14-Generators Click for more information]  
    62  
    63 == Changelog == 
    64  
    65 === 2007-10-16 | 0.1.0 === 
    66  
    67  * romain: plug-in added to symfony 
     1[http://trac.symfony-project.com/wiki/sfAdvancedAdminGeneratorPlugin Redirect to correct page]