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, IDropDownOptions
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

GetOptions(string)

Get options for editors with multiple values
public override Hashtable GetOptions(string dropdownName)

Parameters

dropdownName string

Returns

Hashtable

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
To top