C# Class Skybrud.LinkPicker.Extensions.PublishedContentExtensions

Various extension methods for IPublishedContent and the LinkPicker.
Mostrar archivo Open project: skybrud/Skybrud.LinkPicker

Public Methods

Method 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 method

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.
return LinkPickerItem

GetLinkPickerList() public static method

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.
return LinkPickerList