Class LinkDisplay
Represents a link display model for content editing.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "link", Namespace = "")]
public class LinkDisplay
Constructors
View SourceLinkDisplay()
Declaration
public LinkDisplay()
Properties
View SourceCulture
Gets or sets the (optional) culture of the link.
Declaration
[DataMember(Name = "culture")]
public string? Culture { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Icon
Gets or sets the icon for the link.
Declaration
[DataMember(Name = "icon")]
public string? Icon { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Gets or sets the display name of the link.
Declaration
[DataMember(Name = "name")]
public string? Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Published
Gets or sets a value indicating whether the linked content is published.
Declaration
[DataMember(Name = "published")]
public bool Published { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
QueryString
Gets or sets the query string portion of the link URL.
Declaration
[DataMember(Name = "queryString")]
public string? QueryString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Target
Gets or sets the target attribute for the link (e.g., "_blank").
Declaration
[DataMember(Name = "target")]
public string? Target { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Trashed
Gets or sets a value indicating whether the linked content is in the recycle bin.
Declaration
[DataMember(Name = "trashed")]
public bool Trashed { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Type
Gets or sets the type of link (document, media, or external).
Declaration
[DataMember(Name = "type")]
public string? Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Unique
Gets or sets the unique identifier of the linked content.
Declaration
[DataMember(Name = "unique")]
public Guid? Unique { get; set; }
Property Value
| Type | Description |
|---|---|
| Guid? |
Url
Gets or sets the URL of the link.
Declaration
[DataMember(Name = "url")]
public string? Url { get; set; }
Property Value
| Type | Description |
|---|---|
| string |