config.item_list.item.url - Initialization - Author API

Author API Initialization

url

The URL to be used as a link for Items in Item list view. By default, authors cannot open Items in new browser windows or tabs and can only use one window for authoring.

You would want to use this to allow authors to open multiple Items in multiple browser windows or tabs. You can also go to a completely new URL with the Item reference substituted, so that it can be accessed by your application for your own use.

Examples

// Items will be opened with "#item/[the_item_reference]" in the URL
var initializationOptions = {
    "config": {
        "item_list": {
            "item": {
                "url": "#items/:reference"
            }
        }
    }
};

// Items will go to your custom application URL with the substituted Item reference
var initializationOptions = {
    "config": {
        "item_list": {
            "item": {
                "url": "https://example.com/path/to/item/:reference"
            }
        }
    }
};

Values

Attribute path config.item_list.item.url

Type string

Must contain string ":reference" which will be replaced with the actual Item reference. If this is not provided, links cannot be opened in a new window or tab.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.