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
Template
[AddInParameter("Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "inputClass=inputControl;folder=Templates/Feeds")]
public string? Template { get; set; }
Property Value
Methods
GetContentType()
Gets the content type for the output
public override string? GetContentType()
Returns
GetOutput(Feed, FeedContextConfiguration)
This method is used to get the output of the feed
public override string GetOutput(Feed feed, FeedContextConfiguration feedContextConfiguration)
Parameters
feedFeedThe feed which should be used as the source for the output
feedContextConfigurationFeedContextConfiguration
Returns
GetParameterOptions(string)
public override IEnumerable<ParameterOption> GetParameterOptions(string dropdownName)
Parameters
dropdownNamestring