Changes between Version 3 and Version 4 of HowTos/HowToUseScaffolds/CustomizingGeneratedCfml
- Timestamp:
- 01/05/12 19:58:04 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowTos/HowToUseScaffolds/CustomizingGeneratedCfml
v3 v4 2 2 = Scaffolds: Customizing Generated CFML = 3 3 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.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 generatedViewMapping property of the modelglue.modelGlueConfigurationBean in !ColdSpring.xml. 5 5 6 6 ''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.''' … … 8 8 By default, the following .CFM templates are generated for each scaffolded table: 9 9 10 1. dsp''Table''List.cfm - Displays a list of recordsfrom the table11 1. dsp''Table''.cfm - Displaysa single record from the table12 1. frm''Table''.cfm - Displays an edit form for a single recordfrom the table10 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 13 13 14 14 To customize the generated CFML, you cannot edit these files directly. This would cause them to be overwritten the next time the framework is reloaded. … … 16 16 To 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. 17 17 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.''
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)