Changes between Version 3 and Version 4 of HowTos/HowToUseScaffolds/CustomizingGeneratedCfml

Show
Ignore:
Timestamp:
01/05/12 19:58:04 (14 years ago)
Author:
cfgrok (IP: 207.118.30.242)
Comment:

Updated customization page for version 3 scaffolding

Legend:

Unmodified
Added
Removed
Modified
  • HowTos/HowToUseScaffolds/CustomizingGeneratedCfml

    v3 v4  
    22= Scaffolds: Customizing Generated CFML = 
    33 
    4 Scaffold tags cause certain files to be generated, such as lists, views, and edit forms. This generated code is placed into a directory governed by the !ScaffoldPath property of the !ModelGlueConfigurationBean in !ColdSpring.xml. 
     4Scaffold tags cause certain files to be generated, such as lists, views, and edit forms. This generated code is placed into a directory governed by the generatedViewMapping property of the modelglue.modelGlueConfigurationBean in !ColdSpring.xml. 
    55 
    66''Advanced note: The value of this setting is appended to the !ViewMappings setting, making this directory the last-searched directory when an include tag is encountered.''' 
     
    88By default, the following .CFM templates are generated for each scaffolded table: 
    99 
    10   1. dsp''Table''List.cfm - Displays a list of records from the table 
    11   1. dsp''Table''.cfm - Displays a single record from the table 
    12   1. frm''Table''.cfm - Displays an edit form for a single record from the table 
     10  1. Display.''Table''.cfm - Displays a single record from the table 
     11  1. Form.''Table''.cfm - Displays an edit form for a single record from the table 
     12  1. List.''Table''.cfm - Displays a list of records from the table 
    1313 
    1414To customize the generated CFML, you cannot edit these files directly. This would cause them to be overwritten the next time the framework is reloaded. 
     
    1616To edit a view, simply copy it into the /views directory of your application. At that point, your copy will not be overwritten. If additional database columns are added, you'll be able to use the generated code as a source from which you can copy and paste the new column's CFML. 
    1717 
    18 ''Advanced note: They can alternatively be copied into any directory listed in the !ViewMappings setting'' 
     18''Advanced note: They can alternatively be copied into any directory listed in the !ViewMappings setting.''