Use a link element

 

+

Search Tips   |   Advanced Search

 

When using a link element, you select an item or URL to create a link to, and the define how the link will be displayed. To use a link element, first add a link element to a site, site area, content item or authoring template, or create a link component.

  1. Select one of the following Link types:

    Option Details
    Web content element

    You select this to a create a link to a content item, file resource component, image component or a link component. Click Web content element to select the content item, file resource component, image component or link component to create a link to.
    External URL

    You select this to create a link to an external URL. Enter the URL in the External URL field.

    The inserted URL will be rendered relative to the URL of the site area of the currently rendered content item. Internet protocols (such as Http://) should be added at the beginning of the inserted link if an absolute URL is intended to be rendered.

  2. Select a link display type:

    Option Details
    Text

    You select this to Display the link as text.

    • Use name of linked item: Use the title of the item being linked to as the link text.

    • Enter name: Enter the text to use as the link text.
    Image Component

    You select this to Display the link as an image. Click Select Image to select an image component to use as the link image.

  3. Enter a description of the link by selecting either:

    Option Details
    Use description of linked item

    You select this to use the description of the item being linked to as the link description.
    Enter description

    Enter the text to use as the link description.

  4. Enter an optional query string. You can use a query string entered here as a search parameter in a menu element. For example, you could enter this query string: myquery=shoes You can then specify "myquery" as a search parameter in a menu element.

  5. Select a link target:

    Option Details
    None

    Specify no target parameter.
    New Window

    Open the link in a new browser window.
    Parent

    Open the link in the parent frameset of the frame the link appears in, replacing the entire frameset.
    Self

    Open the link in the current frame, replacing the content in that frame.
    Top

    Open the link in the current browser window, replacing all frames.
    Name

    Open the link in a specific frame. You enter the name of the frame in the Target name field.

  6. Enter additional attributes, such as style sheet classes or javascript. These are used as if entering an attribute in a "<a href=" "></a>" tag. For example:

    • To create the link tag , <a class="classname" href="http://www.ibm.com"></a> you would enter class="classname" in the Additional attributes field.

    • To create the link tag , <a name="homepage" class="classname" href="http://www.ibm.com"></a> you would enter name="homepage" class="classname" in the Additional attributes field.

  7. Select When managing references, do not allow this link to be cleared to prevent a link element from being cleared when managing references. A user will only be able to replace a link.

 

Parent topic

Link element