Creating Application Pages  
 
 

Studio gives you control over your tags and content, while adding shortcuts to help you create pages more quickly -- as well as advanced features that help teams and savvy Web developers increase their productivity.

 
 
  New Users  
 

If you're new to ColdFusion Studio, you'll want to begin with the Quick Start lesson, a mini-tutorial that walks you through the steps to create and view dynamic pages. Then you can follow the procedures and examples in this section.

See the CFML Language Reference for details on all CFML tags and functions.

 
 
  Creating new pages  
 
 

To create a new application page in Studio, you choose File > New to open the New Document dialog box. Here you can choose to

  • Create a blank document, with no tag codes.
  • Use the default template to create a new file with the basic HTML document tags: DOCTYPE, HTML, HEAD, TITLE, and BODY.
  • Choose a Studio wizard that walks you through the steps for creating various types of HTML and CFML pages.
 
 
  To create a new page:  
 
  1. Launch Studio and click the New tool at the top left corner of the Standard toolbar.

    The basic codes for an HTML page appear in the editor window.

    The New tool creates files based on the default template stored at \Allaire\Studio4\Wizards\HTML\Default Template.htm. You can customize this file to change the content of your default template.

  2. In the TITLE tag, enter a descriptive title in the place of "Untitled."

    The text you enter in the TITLE tag appears in the browser's window title, in a search engine's results list, as well as in a user's bookmarks or favorites list when someone bookmarks your page.

  3. Click below the opening BODY tag to position the cursor in the document text area. Now you're ready to enter CFML tags and application page content.
 
 
  Using the Edit, Design, and Browse views  
 
 

Studio offers three views for each document:

Edit View is where you enter and edit text, add tags, and code your pages. This is the primary work space in Studio, where you create and edit tags and content. Use the Edit toolbar to close the current document, navigate among open documents, control word wrap, and turn the gutter on and off.

Design View offers you the additional option of visual editing. You can edit the page while seeing how the results would look in a browser. Design view is most useful if you're a new user, if you're designing the major elements that fit on a page, or if you're creating a complex table.

Browse View shows how your page appears in a Web browser. You can view, but not edit, the current page.

In this manual, most procedures and descriptions apply to the Edit view, unless otherwise noted.

 
 
  Opening existing files  
 
 

You open existing files using the standard Windows File commands or using the Files pane of the Resources tab in Studio:

  • The easiest way to open a file is to double click the file's icon in the File tab in the Resources area.
  • You can also open files by pressing CTRL and dragging a file from the Windows Explorer into Studio.
  • Choose File > Open or use the Open tool on the Standard toolbar. These commands open the Open dialog box, where you can use the standard Windows File Open choices on the Local pane.

    Use the Remote tab of the File Open dialog box to access files on remote servers.

  • To open files from the Web, choose File > Open from the Web.
 
 
  Tip  
 

To open files you've used recently, choose File > Recent Files.

 
 
  Setting File Open preferences  
 

In the General page of the Settings dialog box, you can choose to always restore the last open file when you start Studio. This feature is particularly useful if you frequently open the same file every time you start Studio.

By default, Studio always opens to the folder you had open when you last closed Studio. But you can change Studio's default start up folder in the File Locations pane of the Settings dialog box (F8).

 
 
  Using the Edit toolbar  
 

The Edit toolbar offers a command to show all the open files. You can also move from one open file to the first, previous, next, or last open file using the arrows on the Edit toolbar.



 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.