Working with Resources

The Resources tree provides an alternate view of the files in your project based on file type. For example, if you click the HTML Documents resource, you see a listing of all the HTML files in your entire project.

By default, three types of resources are included in the Resources tree: HTML, CFML, and Images. You can control the display of these three default resources using the Projects pane in the Settings dialog box (F8). You can also create your own resources and specify which files extensions should be displayed for them.

Note To view files for a particular resource:
  1. Expand the Resources node.

  2. Click the Resource whose files you want to see (for example, if you want to see all of your HTML files, click HTML Documents).

    A list of files is displayed. The files shown are only those files whose extensions match that of the Resource you selected.

Note To add a resource:
  1. Right-click Resources and choose Add Resource from the menu to see the Add Resource Folder dialog box.

  2. Enter a name for the resource in the Resource Name box.
  3. Enter the file extension(s) for this type of resource in the Resource Filter box, separating them with semi-colons if you have more than one (for example, the resource filters for the HTML Documents resource are HTM;HTML).
  4. Click OK.

    The new resource is added to the resources list. If you click that resource, a list of files with the extensions you specified is displayed in the file list.

Note To edit a resource:
  1. Right-click the resource in the Resources tree and choose Properties from the menu to see the Edit Resource Folder dialog box.
  2. Make any changes to the resource name or filters and click OK.
Note To remove a resource:
  1. Right-click the resource and choose Remove Resource from the menu.

    You are asked to confirm that you want to remove the resource.

  2. Click Yes.

    The resource is removed from the Resources list.

Note To set resource options:
  1. Choose Options > Settings or press F8 to see the Settings dialog box.
  2. Click Projects to see the Projects Resources settings.

  3. Use the checkboxes to enable and disable resources. If you disable a resource, it is removed from the Resources tree. If you enable a resource, it is displayed it the Resources tree.
  4. Use the text boxes to the right of each resource type to specify the extensions that comprise each resource. Separate extensions with a semi-colon.
  5. Click OK when you're done setting resource options.