using Microsoft.Extensions.DependencyInjection; using System.Collections.Generic; using zero.Core.Entities; using zero.Core.Plugins; namespace zero.TestData { public class Test2Plugin : IZeroPlugin { public void Configure(IServiceCollection services, IZeroPluginBuilder builder) { builder.PageTypes.Add(new PageType() { Alias = "news", Name = "News", Description = "News about the company", Icon = "fth-book" }); builder.PageTypes.Add(new PageType() { Alias = "content", Name = "Page", Description = "Page consisting of modules", AllowAsRoot = true, AllowAllChildrenTypes = true }); builder.PageTypes.Add(new PageType() { Alias = "redirect", Name = "Redirect", Description = "Redirect to another page or an external URL", AllowedChildrenTypes = new List() { "content", "redirect" } }); builder.Renderers.Add(); builder.Renderers.Add(); builder.Renderers.Add(); builder.Renderers.Add(); builder.Renderers.Add(); } } }