OTRS API Reference JavaScript

Namespace: Core.Agent.Admin.ExternalHomePage

Core.Agent.Admin. ExternalHomePage

This namespace contains the special module functions for the external interface home page administration module.
Author:
  • OTRS AG

Members

(static) AddContentCardItem

This function adds a new content card item.

(static) AddImageTeaserItem

This function adds a new image teaser item.
This function adds a pair of link fields.

(static) AddLinkListItem

This function adds a new link list item.
This function removes a pair of link fields.

Methods

(static) AddLanguage(LanguageID, Language) → {Boolean}

This function adds a new home page language configuration.
Parameters:
Name Type Description
LanguageID String short name of the language like es_MX.
Language String full name of the language like Spanish (Mexico).
Returns:
Returns false to prevent event bubbling.
Type
Boolean

(static) Init()

This function initializes the home page configuration screen.

(static) InitCustomizeConfig($Context)

This function initializes correctly all functions according to the local language.
Parameters:
Name Type Description
$Context jQueryObject Context to initialize behavior in.

(static) InitImageUpload($Context)

This function initializes image upload fields in specified context.
Parameters:
Name Type Description
$Context jQueryObject Context to initialize behavior in.

(static) LanguageSelectionRebuild() → {Boolean}

This function rebuilds language selection, only show available languages.
Returns:
Returns true.
Type
Boolean

(static) RemoveLanguage($ButtonObj)

This function removes a home page language configuration.
Parameters:
Name Type Description
$ButtonObj jQueryObject JQuery object used to remove the language block.