Table of Contents

Class TemplateProvider

Namespace
Dynamicweb.Ecommerce
Assembly
Dynamicweb.Ecommerce.dll
[AddInName("Dynamicweb.Ecommerce.Feeds.TemplateProvider")]
[AddInLabel("Template feed provider")]
[AddInActive(true)]
public class TemplateProvider : FeedProvider, IParameterOptions
Inheritance
TemplateProvider
Implements
Inherited Members

Properties

ContentType

[AddInParameter("Content Type")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "inputClass=inputControl")]
public string ContentType { get; set; }

Property Value

string

Template

[AddInParameter("Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "inputClass=inputControl;folder=Templates/Feeds")]
public string Template { get; set; }

Property Value

string

Methods

GetContentType()

Gets the content type for the output

public override string GetContentType()

Returns

string

GetOutput(Feed, FeedContextConfiguration)

This method is used to get the output of the feed

public override string GetOutput(Feed feed, FeedContextConfiguration feedContextConfiguration)

Parameters

feed Feed

The feed which should be used as the source for the output

feedContextConfiguration FeedContextConfiguration

Returns

string

GetParameterOptions(string)

public override IEnumerable<ParameterOption> GetParameterOptions(string dropdownName)

Parameters

dropdownName string

Returns

IEnumerable<ParameterOption>
To top