C# Class Skybrud.LinkPicker.Extensions.PublishedContentExtensions

Various extension methods for IPublishedContent and the LinkPicker.
Afficher le fichier Open project: skybrud/Skybrud.LinkPicker

Méthodes publiques

Méthode Description
GetLinkPickerItem ( this content, string propertyAlias ) : LinkPickerItem

Gets the first link item from a LinkPicker model from the property with the specified propertyAlias. If property isn't a link picker (or the list is empty), an empty item will be returned instead.

GetLinkPickerList ( this content, string propertyAlias ) : LinkPickerList

Gets the LinkPicker model from the property with the specified propertyAlias.

Method Details

GetLinkPickerItem() public static méthode

Gets the first link item from a LinkPicker model from the property with the specified propertyAlias. If property isn't a link picker (or the list is empty), an empty item will be returned instead.
public static GetLinkPickerItem ( this content, string propertyAlias ) : LinkPickerItem
content this The published content to read the property from.
propertyAlias string The alias of the property.
Résultat LinkPickerItem

GetLinkPickerList() public static méthode

Gets the LinkPicker model from the property with the specified propertyAlias.
public static GetLinkPickerList ( this content, string propertyAlias ) : LinkPickerList
content this The published content to read the property from.
propertyAlias string The alias of the property.
Résultat LinkPickerList