Sunday, December 28, 2014

How to link files and documents in Dreamweaver?

             You can use the Property inspector and the Point-to-File icon to create links from an image, and object, or text to another document or file.

A)                To link documents using the property inspector’s folder icon or link text box:
1.                    Select text or an image in the Document.
2.                    Open the Property inspector (Window > Properties), and then do one of the following:

Link Image

·                    Click the folder icon to the right of the Link text box to browser to and select a file.
·                    Type the path and filename of the document in the Link text box.
To link to a document in your site, enter a document-relative or site root-relative path. To link to a document outside your site, enter an absolute path including the protocol (such as http://). You can use this approach to enter a link for a file that hasn’t been created yet.
3.                    From the Target pop-up menu, select a location in which to open the document.
To make the linked document appear somewhere other than in the current window or frame, select an option from the Target pop-up menu on the Property inspector:
·                    _blank loads the linked document in a new, unnamed browser window.
·                    _parent loads the linked document in the parent frame or parent window of the frame that contains the link. If the frame containing the link is not nested, then the linked document loads in the full browser window.
·                    _self loads the linked document in the same frame or window as the link. This target is the default, so you usually don’t have to specify it.
·                    _top loads the linked document in the full browser window, thereby removing all frames.

B)                 To link documents using the Point-to-file icon:
1.                    Select text or an image in the Document.
2.                    Drag the Point-to-file icon at the right of the Link text box in the Property inspector and point to another open document, a visible anchor in an open document, or a document in the Site panel.
The link text updates to show the link.
       Note: You can link to an open document only if our documents are not maximixed in the document window. When you point to an open document, that document moves to the foreground of your screen while you are making your selection.
3.                    Release the mouse button.

C)                To create a link from a selection in an open document:
1.                    Select text in the Document window.
2.                    Shift-drag from the selection.
The Point-to-File icon appears as you drag.
3.                    Point to another open document, a visible anchor in an open document, or a document in the Site panel.
4.                    Release the mouse button.

D)                To link documents using the  site map and the Point-to-File icon:
1.                    Expand the Site panel, and then display both the Site Files and the Site Map views by holding down the Site Map icon and choosing Map and Files.
2.                    Select an HTML file in the site map.
The Point-to-File icon appears next to the file.
3.                    Drag the Point-to-File icon and point to another file in the site map or to a locl file in the Site Files view.
4.                    Release the mouse button.
A hypertext link with the name of the linked file is placed at the bottom of the selected HTML file. This method works well when you are building your site and you want to create links across the site quickly.