Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Vista

Adobe Dreamweaver CS5 : Using Library Items and Server-side Includes (part 7) - Applying Server-Side Includes - Adding server-side includes

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
11/29/2013 1:56:07 AM

5.1. Adding server-side includes

Dreamweaver has made inserting a server-side include in your Web page straightforward. You can use a Dreamweaver object to easily select and bring in the files to be included. Any other type of SSI, such as declaring a variable, must be entered by hand, but you can use the Comment object to do so without opening the Code view.

To use server-side includes to incorporate a file, follow these steps:

  1. In the Document window, place your cursor at the location where you would like to add the server-side include.

  2. Choose Insert Server-Side Include or choose Script:SSI from the Insert panel's HTML category. The standard Select File dialog box appears.

  3. In the Select File dialog box, type the URL of the HTML page you would like to include in the File Name text box or use the Browse button to locate the file. Click OK when you're finished.

    NOTE

    Through the Select File dialog box, you can also select a data source for a dynamically inserted SSI or link to an SSI already published on a server through the Sites and Servers interface. However, SSIs inserted in this manner can be previewed in Dreamweaver only in the Live Data view.

    Dreamweaver displays the contents of the HTML file at the desired location in your page. Should the Properties panel be available, the SSI Properties panel is displayed (see Figure 6).

  4. In the Properties panel, if the server-side include calls a file-relative document path, select the Type File option. Alternatively, if the SSI calls a site-root–relative file, choose the Type Virtual option.

Figure 6. The selected text is actually a server-side include automatically translated by Dreamweaver, as evident from the SSI Properties panel.

5.2. Editing server-side includes

As is the case with Library items, you cannot directly edit files that have been inserted into a Web page using server-side includes. In fact, should you try, the entire text block highlights as one. The code for a server-side–included file is quickly accessible through the Related Files bar.

To edit the contents of the server-side–included file, follow these steps:

  1. From the Related Files bar, choose the server-side file you want to edit.

    If you want to see changes applied to the design, enter Live View.

  2. Make any changes desired to the code.

  3. Choose Source from the Related Files bar.

    If you're in Live View, the changes will now be displayed.

Another, older way to edit your SSI is to select it and then click the Edit button in the Properties panel. The file will open in a new Dreamweaver window for editing. Save your file and then switch back to your source file to see the changes. Although this technique still works, using the Related Files bar with Live View is much faster.

Unlike when you are editing Library items, Dreamweaver does not ask if any other linked files should be updated because all blending of regular HTML and SSIs happens at runtime or when the file is open in Dreamweaver and the SSI translator is engaged.

Other -----------------
- Configuring Startup and Troubleshooting Startup Issues : How to Configure Startup Settings (part 2) - How to Use BCDEdit
- Configuring Startup and Troubleshooting Startup Issues : How to Configure Startup Settings (part 1)
- Configuring Startup and Troubleshooting Startup Issues : Important Startup Files
- Accessing and Using Your Network : Collaborating with Windows Meeting Space (part 2)
- Accessing and Using Your Network : Collaborating with Windows Meeting Space (part 1)
- Accessing and Using Your Network : Working with Offline Files and the Sync Center (part 2) - Synchronizing Offline Files, Handling Synchronization Conflicts
- Accessing and Using Your Network : Working with Offline Files and the Sync Center (part 1) - Working with Network Files Offline
- Accessing and Using Your Network : Sharing Resources with the Network (part 3) - Hiding Shared Resources
- Accessing and Using Your Network : Sharing Resources with the Network (part 2) - Sharing a Resource
- Accessing and Using Your Network : Sharing Resources with the Network (part 1) - Setting Up File and Printer Sharing, Deactivating the Sharing Wizard
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server