Editing ColdFusion components in Dreamweaver
Dreamweaver provides a streamlined way of editing the code of the ColdFusion components defined for your site. For example, you can add, change, or delete any component function without leaving Dreamweaver.
To use this feature, your development environment must be set up as follows:
- ColdFusion must be running locally.
- In the advanced Site Definition dialog box in Dreamweaver, the Access type specified in the Testing Server category must be Local/Network.
- In the advanced Site Definition dialog box, the path of your local root folder must be the same as the path of the testing server folder (for example, c:\Inetpub\wwwroot\cf_projects\myNewApp\). You can examine and change these paths by selecting Site > Edit Sites.
- The component must be stored in the local site folder or any of its subfolders on your hard disk.
Open any ColdFusion page in Dreamweaver and display the components in the Components panel. To display the components, open the Components panel (Window > Components), select CF Components from the panels pop-up menu, and click the Refresh button on the panel.
Because ColdFusion is running locally, Dreamweaver displays component packages on your hard disk. For more information, see Viewing ColdFusion components in Dreamweaver.
To edit a component:
- Open any ColdFusion page in Dreamweaver and display the components in the Components panel (Window > Components).
- Select CF Components from the panels pop-up menu, and click the Refresh button on the panel.
Because ColdFusion is running locally, Dreamweaver displays component packages on your hard disk. For more information, see Viewing ColdFusion components in Dreamweaver.
- To edit a component file generally, open the package and double-click the component name in the tree view.
Dreamweaver opens the components file in Code view.
- To edit a specific function, argument, or property, double-click the item in the tree view.
- Make your changes by hand in Code view.
- Save the file (File > Save).
To see any new function in the Components panel, refresh the view by clicking the Refresh button on the panel toolbar.