NetObjects
Products and Services Partners Support
Company Purchase
Custom Links in AutoFrames

subheadline
INTRODUCTION TO CUSTOM LINKS IN AUTOFRAMES

You can create and add buttons and links in an AutoFrame to display different content in that frame or another frame. For example, you might want to display a certain anchor in the Layout frame, or display different content within an AutoFrame. A custom link is the only way to display an anchor in an AutoFrame.

In general, to do create a custom link, you'll follow these steps:

  • Place and select the object to be linked.

You might add some text, place a picture, or draw a shape.

  • Click the Link button on the object's properties tab, then select the External tab in the Link dialog that appears.
  • In the URL edit box, enter your custom link in the form

what_to_display" target="frame_name

You'll replace what_to_display and frame_name with actual values. You might have to clear the http:// from the drop-down list. The following procedures give specific examples.

As you enter the custom link, remember that the target frame name is case sensitive. Also, change any spaces in the frame name to underscores. For example, in NetObjects Fusion 2.0.1 for Windows, enter Left Frame as Left_Frame and in NetObjects Fusion 2.0 for Macintosh, enter L_Frm.

Do not type quote marks at the beginning and end of text in the URL edit box. NetObjects Fusion automatically encloses the text with quotes.

  • Close the Link dialog, preview your site, and test the link.

The following examples show specifically how to

  • Display a URL in the Layout frame
  • Display another page from your site in the Layout frame
  • Display an anchor in the Layout frame
  • Display a URL in the frame of your choice
  • Display a page in the full browser window without frames
  • Display a page in a new browser window

Back to Top 

subheadline
TO DISPLAY A URL IN THE LAYOUT FRAME

In your AutoFrame, place and select the object to be linked.

Click the Link... button on the lower left of the object's properties tab.

In the Link dialog that appears, select the External Link tab.

In the URL edit box, enter the URL and the name of the Layout frame. For example, in NetObjects Fusion 2.0.2 for Windows and Macintosh:

  • www.netobjects.com" target="body
  • Or, in NetObjects Fusion 2.0.1 for Windows and NetObjects Fusion 2.0 for Macintosh:
  • www.netobjects.com" target="Default
  • If you have renamed the default MasterBorder, or created and selected another MasterBorder to define your frameset, use that name in the above example instead of Default.
  • Click Link to close the dialog and create the link.

Preview your page and test the link.

Back to Top 

subheadline
TO DISPLAY ANOTHER PAGE FROM YOUR SITE IN THE LAYOUT FRAME

1. In the Layout area, place and select the object to be linked.

2. Click the Link... button on the lower left of the object's properties tab.

3. In the Link dialog that appears, select the External Link tab.

4. Select the text http:// in the left edit box on the URL line and press Delete.

  • This clears the edit box to specify no protocol. You don't need one to reference something within your site.

5. In the URL edit box, enter the path and name of the page that you want to appear, and the name of the Layout frame in the form:

  • path_and_name.html" target="frame_name
  • Because you're linking from one page to another within your site, you must use a relative reference in the path. Remember that frame files for your Home page reside in the root folder of your site as described in Frame File Paths and Browser Refresh. Files for all other pages are in the /html folder.
    • If both pages reside in the /html folder, enter a relative path like this:

      ./filename.html

      The ./ indicates that both files reside in the same folder.
    • If you're linking from your Home page to another page in your site, enter a relative path like this:

      ./html/filename.html

      The ./html part of the path directs the browser down into the /html folder to find the appropriate page.
    • If you're linking to the Home page from any other page in your site, enter this relative path in NetObjects Fusion 2.0.1 for Windows or NetObjects
      Fusion 2.0 for Macintosh:

      ../default_index.html

      or this one in NetObjects Fusion 2.0.2 for Windows and Macintosh

      ../body_index.html

      The ../ directs the browser to traverse up one level in the folder structure.

Here are two examples based on the sample site you created in previous sections. In NetObjects Fusion 2.0.1 for Windows and NetObjects Fusion 2.0 for Macintosh, to display the content of the Home page's Layout frame in some other page's Layout frame:

../ Default_index.html " target="Default

Or, in NetObjects Fusion 2.0.2 for Windows and Macintosh, to display the content of page One's Layout frame:

.../body_One.html" target="body

6. Click Link to close the dialog and create the link.

7. Preview your page and test the link.

The content you specified appears on the
Layout frame.

Back to Top 

subheadline
TO DISPLAY AN ANCHOR IN THE LAYOUT FRAME

1. In the Layout area, place and select the object to be linked.

2. Click the Link... button on the lower left of the object's properties tab.

3. In the Link dialog that appears, select the External Link tab.

4. Select the text http:// in the left edit box on the URL line and press Delete.This clears the edit box to specify no protocol.

5. In the URL edit box, enter the path and name of the page that contains the anchor, the name of the anchor, and the name of the Layout frame in the form:

  • path_and_name.html#anchor_name" target="frame_name
  • If the anchor is on another page in your site, you must enter a relative path as described in To display another page from your site in the Layout frame.
  • For example, to display an anchor named ShowMe that exists in the Home page's Layout, where the Home page has the Default MasterBorder, in NetObjects Fusion 2.0.1 for Windows and NetObjects Fusion 2.0 for Macintosh you would enter:
  • ../Default_index.html#ShowMe" target="Default
  • Or, in NetObjects Fusion 2.0.2 for Windows and Macintosh:
  • ../body_index.html#ShowMe" target="body
  • Click Link to close the dialog and create the link.

6. Preview your page and test the link.

Back to Top 

subheadline
TO DISPLAY A URL IN THE AUTOFRAME OF YOUR CHOICE

1. In your Layout area, place and select the object to be linked.

2. Click the Link... button on the lower left of the object's properties tab.

3. In the Link dialog that appears, select the External Link tab.

4. In the URL edit box, enter the URL and the name of the frame you want. For example, in NetObjects Fusion 2.0.2 for Windows and Macintosh:

  • www.netobjects.com" target="left
  • Or, in NetObjects Fusion 2.0.1 for Windows and NetObjects Fusion 2.0 for Macintosh:
  • www.netobjects.com" target="frame_name
  • where the frame name is either one of the defaults listed in Frame File Paths and Browser Refresh, or the name you gave the frame.

5. Click Link to close the dialog and create the link.

6. Preview your page and test the link.

Back to Top 

subheadline
TO DISPLAY THE LINKED PAGE IN THE FULL BROWSER WINDOW

Follow the steps above but type the following in the URL edit box:

filename.html" target="_parent

Back to Top 

subheadline
TO DISPLAY A URL IN A NEW BROWSER WINDOW

1. In your AutoFrame, add the picture or text to be linked.

2. Click the Link... button on the lower right of the Properties palette.

3. Select the External Link tab.

  • In the URL edit box, make sure http:// is selected, and then enter:
  • www.domain.com" target="non-frame_name
  • In the above statement, non-frame_name is the name you want the browser to look for; the trick is to enter a frame name the browser can't find. Any name that does not match a frame name will do. The browser will first look for a frame with the specified name, then if it finds none, it will open a new instance of itself and display the URL in it.
  • Click Link to close the dialog and create the link.

4. Preview your page and test the link.

Back to Top 

 

 

Search
 

 

© 2001 NetObjects, Inc. All rights reserved. Privacy Policy