Table of Contents

Class Frontend

Namespace
Dynamicweb.Ecommerce.CustomerCenter
Assembly
Dynamicweb.Ecommerce.dll
Frontend class.
[AddInName("eCom_CustomerCenter")]
public class Frontend : ContentModule, IModule
Inheritance
Frontend
Implements
Inherited Members

Methods

GetContent()

Override this method and return the HTML output for the module.
public override string GetContent()

Returns

string
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.
See Also

See Also

To top