Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
top
top
Link Behaviors define what happens on the website front-end frontend when a hyperlink is clicked. In the Editor, a link behavior must be assigned to all links. Link behaviors determine the look and feel of hyperlinks in XperienCentral, for example whether the link appears in the same browser window or in a new window, the size of the window that is linked to, whether it has a navigation bar, is resizable, and so forth. By default there are two default link behaviors. You can also create your own link behaviors and use them for hyperlinks.


Info

In GX WebManager 9, "link behaviors" were referred to as "link models". While the name has been changed in many parts of XperienCentral, you will still come across this old term in some interfaces, classes and stylesheets. In XperienCentral, "link behaviors" and "link models" refer to the exact same functionality.


In This Topic

Table of Contents
maxLevel2
minLevel2

...

  1. Select "<New Link Behavior>" from the "Select Link Behavior" drop-down list. The properties for the new behavior appear below.
  2. Define the following properties:

    PropertyDescription
    TitleThe name of the link model. For best results, give the behavior a meaningful name that reflects how it behaves.
    CSS classThe cascading stylesheet (CSS) to use to style the pop-up or new window for the link.
    Rel attributeSpecifies a value that will be rendered in the rel attribute in a link tag. This can be used to make sure search engines do not follow a certain link. The rel attribute describes the relationship between documents. For more information and all valid link types, see https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types.
    Target attributeSpecifies a custom value for the target attribute of the link. This can be used to determine where a link should open or if the link should target an iframe. The target attribute can contain one of 4 default values or a custom value (for example the name of an iframe). See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a for more information.
    Pop-upSpecifies whether the link opens in a pop-up window. This means that the link will not open in the active browser window nor in a new browser.
    WidthThe width of the pop-up in pixels.
    HeightThe height of the pop-up in pixels.
    LeftThe number of pixels from the left edge of the screen where the pop-up will appear.
    TopThe number of pixels from the top edge of the screen where the pop-up will appear..
    LocationSpecifies whether an address bar appears in the pop-up window.
    ToolbarSpecifies whether the toolbar is visible in the pop-up window.
    FoldersSpecifies whether a [Link] button that links to the "Favorites" menu is visible in the pop-up window..
    Status barSpecifies whether the status bar is visible in the pop-up window.
    Scroll barsSpecifies whether scroll bars are visible in the pop-up window.
    ResizableSpecifies whether the pop-up window is resizable.
    Menu barSpecifies whether the menu bar is visible in the pop-up window.
    New windowSpecifies whether the link opens in a new browser window. The new browser window will have the same settings as the browser window in which the link is opened.
    Set popup attributes as

    Specifies the pop-up attributes. The options are "onClick and "data attributes". If "onClick" is selected, the pop-up options are added as an "onClick" attribute. When "data attributes" is selected, the attributes are added to the link as data attributes instead. The possible data attributes are:

    Property

    Data Attribute

    Widthdata-width
    Heightdata-height
    Leftdata-left
    Topdata-top
    Directoriesdata-directories
    Locationdata-location
    Toolbardata-toolbar
    Foldersdata-folders
    Status bardata-statusbar
    Resizabledata-resizable
    Menu bardata-menubar




    You can select multiple properties for a "Pop-up" link.


  3. Click [Apply]. The new Link Behavior is created. When you create a hyperlink in the Editor, the behavior is available from the "Link Behavior" drop-down list.

...