C# Class OxxCommerceStarterKit.Core.Extensions.CommerceMediaExtensions

Afficher le fichier Open project: episerver/Commerce-Demo-Kit

Méthodes publiques

Méthode 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 méthode

public static AssetContentLink ( this media, IPermanentLinkMapper permanentLinkMapper ) : EPiServer.Core.ContentReference
media this
permanentLinkMapper IPermanentLinkMapper
Résultat EPiServer.Core.ContentReference

AssetImageUrls() public static méthode

public static AssetImageUrls ( this entry ) : List
entry this
Résultat List

AssetSwatchUrl() public static méthode

public static AssetSwatchUrl ( this entry ) : string
entry this
Résultat string

AssetUrls() public static méthode

public static AssetUrls ( this entry ) : List
entry this
Résultat List

GetCommerceMedia() public static méthode

public static GetCommerceMedia ( this entry ) : CommerceMedia
entry this
Résultat CommerceMedia

GetCommerceMedia() public static méthode

public static GetCommerceMedia ( this entry, int index ) : CommerceMedia
entry this
index int
Résultat CommerceMedia

GetDefaultImage() public static méthode

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.
Résultat string

GetImage() public static méthode

public static GetImage ( this productContent, string preset = null, string groupName = null ) : string
productContent this
preset string
groupName string
Résultat string