C# 클래스 OxxCommerceStarterKit.Core.Extensions.CommerceMediaExtensions

파일 보기 프로젝트 열기: episerver/Commerce-Demo-Kit

공개 메소드들

메소드 설명
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