<-- Back to Commands (Display)

{LINK(obj_id, text, param)}

The LINK command creates a link on the page to another object.
This is equivalent to using the HTML <a> tag.
Using this tag is easier than manually creating the HTML version and it will insert any additional parameters necessary to track the link if the page is used in an email, as well as adding the necessary JavaScript for a page transition if you are using an AJAX Menu.
Number Name Default Type Description
1 obj_id 0 Integer ID of object to link to
2 text Link String Text to be displayed on the link
3 param String Any parameters you want to pass to the page e.g. "A=1&B=2"
4 bookmark String Adds a bookmark to the URL.
- class String

Set the classes on the link.

e.g. btn btn-primary

- style String Element Style
- method 1 Integer

The display method when loading the content via AJAX into a page element.

0 - Populate but don't show
1 - Show / Hide toggle
2 - Show
3 - Slide Down / Slide Up toggle
4 - Slide Down
5 - Fade In / Fade Out toggle
6 - Fade In

- dialog_x 600 Integer The width to display the dialog box. Only used with a target of DIALOG.
- dialog_y 500 Integer The height to display the dialog box. Only used with a target of DIALOG.
- confirm String Question to ask before the link is executed.
- dialog_o D String

Any options to pass to the Dialog Box

        C    -    Cancel Button
        D    -    Done Button
        E    -    Send Button
        O    -    OK Button
        P    -    Proceed Button
        S    -    Submit Button
        U    -    Use Button

        I    -    IFrame
        K    -    Submit Form on Carriage Return
        R    -    Refresh Page on Done
        V    -    Dialog content in div whoos ID is in URL
        W    -    Dialog content in text_area whoos ID is in URL
        X    -    Danger Title
        Y    -    Primary Header
        Z1    -    Custom Class 1
        Z2    -    Custom Class 2

- friendly_name true Boolean

This can hold the values true, false.
Use false if this is a link for internal use and you do not need the system to look on the destination object for the friendly name. This will save processing time.

- title String Adds a title to the link
- target String

Add a page target :-

#Element ID,

You can create an AJAX link by entering a # followed by the ID of the element to populate.
If you just enter a # then a div element will be created immediately below the link.

Log in to add a Comment.