Class UserTemplateExtender
- Namespace
- Dynamicweb.Frontend.UserManagement
- Assembly
- Dynamicweb.dll
Represents template extender.
public abstract class UserTemplateExtender : TemplateExtender
- Inheritance
-
UserTemplateExtender
- Inherited Members
Examples
using Dynamicweb.Frontend.UserManagement;
using Dynamicweb.Rendering;
using Dynamicweb.Security.UserManagement;
namespace Dynamicweb.Examples.UserManagement;
public class UserTemplateExtenderSample : UserTemplateExtender
{
public override void ExtendTemplate(Template template)
{
template.SetTag("MyCustomTag", "MyCustomValue:" + User.Name);
var parentGroups = User.GetGroups();
//Do some actions with groups.
}
}
Properties
User
Gets or sets the user.
public User User { get; set; }
Property Value
- User
The user.