C# Класс OxxCommerceStarterKit.Core.Extensions.CommerceMediaExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
AssetContentLink ( this media, IPermanentLinkMapper permanentLinkMapper ) : EPiServer.Core.ContentReference
AssetImageUrls ( this entry ) : List
AssetSwatchUrl ( this entry ) : string
AssetUrls ( this entry ) : List
GetCommerceMedia ( this entry ) : CommerceMedia
GetCommerceMedia ( this entry, int index ) : CommerceMedia
GetDefaultImage ( this productContent, string preset = null, string groupName = null ) : string

Gets the default image for a product. If none can be found, returns /globalassets/system/no-image.png (with a preset if specified)

GetImage ( this productContent, string preset = null, string groupName = null ) : string

Описание методов

AssetContentLink() публичный статический Метод

public static AssetContentLink ( this media, IPermanentLinkMapper permanentLinkMapper ) : EPiServer.Core.ContentReference
media this
permanentLinkMapper IPermanentLinkMapper
Результат EPiServer.Core.ContentReference

AssetImageUrls() публичный статический Метод

public static AssetImageUrls ( this entry ) : List
entry this
Результат List

AssetSwatchUrl() публичный статический Метод

public static AssetSwatchUrl ( this entry ) : string
entry this
Результат string

AssetUrls() публичный статический Метод

public static AssetUrls ( this entry ) : List
entry this
Результат List

GetCommerceMedia() публичный статический Метод

public static GetCommerceMedia ( this entry ) : CommerceMedia
entry this
Результат CommerceMedia

GetCommerceMedia() публичный статический Метод

public static GetCommerceMedia ( this entry, int index ) : CommerceMedia
entry this
index int
Результат CommerceMedia

GetDefaultImage() публичный статический Метод

Gets the default image for a product. If none can be found, returns /globalassets/system/no-image.png (with a preset if specified)
public static GetDefaultImage ( this productContent, string preset = null, string groupName = null ) : string
productContent this Content of the product.
preset string The preset.
groupName string Name of the group.
Результат string

GetImage() публичный статический Метод

public static GetImage ( this productContent, string preset = null, string groupName = null ) : string
productContent this
preset string
groupName string
Результат string