Dynamicweb 8 Documentation
PageTemplateExtender Class
Members  Example 

Pageview template extender. Extends the rendering of a Dynamicweb.Frontend.PageView.
Object Model
PageTemplateExtender ClassPageView Class
Syntax
'Declaration
 
Public MustInherit Class PageTemplateExtender 
   Inherits Dynamicweb.Extensibility.TemplateExtender
public abstract class PageTemplateExtender : Dynamicweb.Extensibility.TemplateExtender 
Example
Extending the layout templateExtending the layout template
namespace Dynamicweb.Examples.CSharp
{
    public class PageTemplateExtenderSample : PageTemplateExtender
    {
        public override void ExtendTemplate(Dynamicweb.Rendering.Template template)
        {
            template.SetTag("MyTag", "MyValue");
        }
    }
}
Public Class PageTemplateExtenderSample
    Inherits PageTemplateExtender

    Public Overrides Sub ExtendTemplate(ByVal template As Rendering.Template)
        template.SetTag("MyTag", "MyValue")
    End Sub
End Class
Inheritance Hierarchy

System.Object
   Dynamicweb.Extensibility.TemplateExtender
      Dynamicweb.PageTemplateExtender
         Dynamicweb.eCommerce.Frontend.Cart.CartPageTemplateExtender

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PageTemplateExtender Members
Dynamicweb Namespace

Send Feedback