+

Search Tips   |   Advanced Search


Create a link component

You create a link component when you want to reuse a link in multiple places in your Web site.

  1. From an authoring portlet, click New > Component > Link .

  2. Go to the Link tab:

  3. Enter identification information for the component.

  4. Either click Browse Content to select a content item, file resource component, image component or link component to link to, or enter a URL in the 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.

  5. Select a link display type:

    Option Details
    Text You select this to display the link as text. Enter some text or select Use title of linked item to use the title of the item being linked to as the link title.
    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.

  6. Enter a description of the link or select Use description of linked item to use the description of the item being linked to as the link description.

  7. Select a link target:

    Option Details
    None You select this to specify no target parameter.
    New Window You select this to open the link in a new browser window.
    Parent You select this to open the link in the parent frameset of the frame the link appears in, replacing the entire frameset.
    Self You select this to open the link in the current frame, replacing the content in that frame.
    Top You select this to open the link in the current browser window, replacing all frames.
    Name You select this to open the link in a specific frame. You enter the name of the frame in the Target name field.

  8. 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.

  9. If workflows are enabled for components, select a workflow.

  10. Set access properties.

  11. Save the component form.


Parent topic:

Use a link element


Related tasks


Entering identification information
Select a workflow
Granting users or groups access to an item