C# Class OxxCommerceStarterKit.Core.Extensions.CommerceMediaExtensions

Datei anzeigen Open project: episerver/Commerce-Demo-Kit

Public Methods

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

Method Details

AssetContentLink() public static method

public static AssetContentLink ( this media, IPermanentLinkMapper permanentLinkMapper ) : EPiServer.Core.ContentReference
media this
permanentLinkMapper IPermanentLinkMapper
return EPiServer.Core.ContentReference

AssetImageUrls() public static method

public static AssetImageUrls ( this entry ) : List
entry this
return List

AssetSwatchUrl() public static method

public static AssetSwatchUrl ( this entry ) : string
entry this
return string

AssetUrls() public static method

public static AssetUrls ( this entry ) : List
entry this
return List

GetCommerceMedia() public static method

public static GetCommerceMedia ( this entry ) : CommerceMedia
entry this
return CommerceMedia

GetCommerceMedia() public static method

public static GetCommerceMedia ( this entry, int index ) : CommerceMedia
entry this
index int
return CommerceMedia

GetDefaultImage() public static method

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

GetImage() public static method

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