Class Frontend
- Namespace
- Dynamicweb.Ecommerce.CustomerCenter.ShowList
- Assembly
- Dynamicweb.Ecommerce.dll
The class Frontend represents accessor to Ecom ShowList module content.
[AddInName("eCom_ShowList")]
public class Frontend : ContentModule, IModule
- Inheritance
-
Frontend
- Implements
- Inherited Members
Methods
GetModuleContent()
Override this method and return the HTML output for the module.
public override OutputResult GetModuleContent()
Returns
- OutputResult
Must return the markup that renders the module.
Examples
using Dynamicweb.Extensibility.AddIns;
using Dynamicweb.Modules;
namespace Dynamicweb.Examples
{
[AddInName("ModuleSystemName")]
public class ContentModuleSample : ContentModule
{
public override string GetContent()
{
//Get an instance of a template object
var template = new Dynamicweb.Rendering.Template("ModuleSystemName/Template.cshtml");
//Set a tag named "Text" with the value from the HelloText property
template.SetTag("Text", Properties.Values["HelloText"].ToString());
//Add the page id executing the page with the paragraph where this module is attached
template.SetTag("PageID", this.Pageview.ID);
//Return the parsed template to the event handler
return template.Output();
}
}
}
Remarks
The markup returned is what is inserted into the template tag ParagraphModule
in the paragraph template.