CustomPageWebLink
Represents a custom link defined in a home page component.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
All other custom links are stored as a WebLink in a CustomObject.
This type extends Metadata and inherits its fields.
There is one file per custom link definition, stored in the weblinks folder in the corresponding package directory. The file suffix is .weblink.
CustomPageWebLinks are available in API version 13.0 and later.
- Type: WebLinkAvailability (enumeration of type string)
- Required: Yes
- Description: Required. Indicates whether the link is only available online (
online, or if it is also available offline (offline).
- Type: string
- Required: No
- Description: A description of the link.
- Type: WebLinkDisplayType (enumeration of type string)
- Required: Yes
- Description: Represents how this link is rendered.
- Possible values:
- link — for a hyperlink
- button — for a button
- massActionButton — for a button attached to a related list
- Type: Encoding (enumeration of type string)
- Required: No
- Description: Required. The default encoding setting is Unicode:
UTF-8. Change it if your template requires data in a different format. This is available if your content source is URL. Valid values include: - Possible values:
- UTF-8 — Unicode (UTF-8)
- ISO-8859-1 — General US & Western Europe (ISO-8859–1, ISO-LATIN-1)
- Shift_JIS — Japanese (Shift-JIS)
- ISO-2022-JP — Japanese (JIS)
- EUC-JP — Japanese (EUC-JP)
- x-SJIS_0213 — Japanese (Shift-JIS_2004)
- ks_c_5601-1987 — Korean (ks_c_5601-1987)
- Big5 — Traditional Chinese (Big5)
- GB2312 — Simplified Chinese (GB2312)
- Big5-HKSCS — Traditional Chinese Hong Kong (Big5–HKSCS)
- Type: string
- Required: No
- Description: The name used as a unique identifier for API access. The
fullNamecan contain only underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.
- Type: boolean
- Required: No
- Description: If the
openTypeisnewWindow, this field indicates whether to show the browser menu bar for the window (trueor not (false). Otherwise, leave this field empty.
- Type: boolean
- Required: No
- Description: If the
openTypeisnewWindow, this field indicates whether to show the scroll bars for the window (true) or not (false). Otherwise, leave this field empty.
- Type: boolean
- Required: No
- Description: If the
openTypeisnewWindow, this field indicates whether to show the browser toolbar for the window (true) or not (false). Otherwise, leave this field empty.
- Type: int
- Required: No
- Description: Height in pixels of the window opened by the link. Required if the
openTypeisnewWindow. Otherwise, leave this field empty.
- Type: boolean
- Required: No
- Description: If the
openTypeisnewWindow, this field indicates whether to allow resizing of the window (true) or not (false). Otherwise, leave this field empty.
- Type: WebLinkType (enumeration of type string)
- Required: Yes
- Description: Required. Represents whether the content of the button or link is specified by a URL, an sControl, a JavaScript code block, or a Visualforce page.
- Possible values:
- url
- sControl
- javascript
- page
- flow — Reserved for future use.
- Type: string
- Required: No
- Description: The label for the link.
- Type: WebLinkWindowType (enumeration of type string)
- Required: Yes
- Description: Required. When the link is clicked, this field specifies the window style used to display the content.
- Possible values:
- newWindow
- sidebar
- noSidebar
- replace
- onClickJavaScript
- Type: string
- Required: No
- Description: If the value of
linkTypeispage, this field represents the Visualforce page. Otherwise, leave this field empty.
- Type: WebLinkPosition (enumeration of type string)
- Required: No
- Description: If the
openTypeisnewWindow, this field indicates how the new window should be displayed. Otherwise, leave this field empty. - Possible values:
- fullScreen
- none
- topLeft
- Type: boolean
- Required: Yes
- Description: Required. Indicates whether this component is protected (
true) or not (false). Protected components cannot be linked to or referenced by components created in the installing organization.
- Type: boolean
- Required: No
- Description: If the
openTypeismassAction, this field indicates whether to require individual row selection to execute the action for this button (true) or not (false). Otherwise, leave this field empty.
- Type: string
- Required: No
- Description: If the value of
linkTypeissControl, this field represents the name of the sControl. Otherwise, leave this field empty.
- Type: boolean
- Required: No
- Description: If the
openTypeisnewWindow, this field indicates whether or not to show the browser location bar for the window. Otherwise, leave this field empty.
- Type: boolean
- Required: No
- Description: If the
openTypeisnewWindow, this field indicates whether or not to show the browser status bar for the window. Otherwise, leave this field empty.
-
Type: string
-
Required: No
-
Description: If the value of
linkTypeisurl, this field represents the URL value. If the value oflinkTypeisjavascript, this field represents the JavaScript content. If the value is neither of these, leave this field empty.Content must be escaped in a manner consistent with XML parsing rules.
-
Type: int
-
Required: No
-
Description: Width in pixels of the window opened by the link.
Required if the
openTypeisnewWindow. Otherwise, leave this field empty.
The following is the definition of a Weblink. For related samples, see HomePageComponent and HomePageLayout.
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.