/// <summary> /// Initializes a new instance of the <see cref="UserGourpManagerPortlet"/> class. /// </summary> public UserGourpManagerPortlet() { Name = "User Group Manager"; Description = "This portlet is for managing group memeberships of users"; Category = new PortletCategory(PortletCategoryType.Portal); this.HiddenProperties.Add("Renderer"); }
/// <summary> /// Initalize the portlet name and description /// </summary> public EventCalendarPortlet() { Name = "Event calendar"; Description = "Portlet for handling events in calendar view (context bound)"; Category = new PortletCategory(PortletCategoryType.Application); this.HiddenProperties.Add("Renderer"); }
//====================================================================== Constructor public WorkspaceSummaryPortlet() { Name = "Workspace Summary"; Description = "A portlet for displaying list of workspaces and Key Performance Indicators"; Category = new PortletCategory(PortletCategoryType.KPI); this.HiddenPropertyCategories = new List<string>() { EditorCategory.Collection, EditorCategory.ContextBinding }; this.HiddenProperties.AddRange(new[] { "SkinPreFix", "Renderer" }); }
/// <summary> /// Initializes a new instance of the <see cref="StatusCodePortlet"/> class. /// </summary> public StatusCodePortlet() { Name = "Status Code"; Description = "Portlet for setting status code on page after rendering."; Category = new PortletCategory(PortletCategoryType.Application); this.HiddenPropertyCategories = new List<string>() { "Content XML" }; this.HiddenProperties.AddRange(new [] { "PortletChromeType", "Renderer", "SkinPreFix" }); }
public static void ImportCategory(PortletCategory category, IEnumerable <Node> repoCategories) { var categoryName = GetValidName(category.Title); var parent = GetPortletFolder(); if (parent == null) { throw new InvalidOperationException("Portlets folder does not exist."); } // check if already exists if (repoCategories.Any(c => c.Name == categoryName)) { return; } // create category node var categoryNode = Content.CreateNew("PortletCategory", parent, categoryName); categoryNode["DisplayName"] = category.Title; categoryNode["Description"] = category.Description; categoryNode.Save(); }
public TagToBlackListPortlet() { Name = "Tag to blacklist"; Description = "Portlet for blacklisting tags (context bound)"; Category = new PortletCategory(PortletCategoryType.Application); }
// Constructors /////////////////////////////////////////////////// public ContentCollectionPortlet() { Name = "Content collection"; Description = "An all-purpose portlet for interacting with collections (context bound)"; Category = new PortletCategory(PortletCategoryType.Collection); //remove the xml/xslt fields from the hidden collection this.HiddenProperties.RemoveAll(s => XmlFields.Contains(s)); Cacheable = true; // by default, any contentcollection portlet is cached (for visitors) CacheByParams = true; // by default, params are also included -> this is useful for collections with paging }
// ============================================================================================================ Constructor public ParametricSearchPortlet() { Name = "Parametric search"; Description = "An all-purpose portlet for various searches"; Category = new PortletCategory(PortletCategoryType.Search); Cacheable = false; // by default, caching is switched off this.HiddenPropertyCategories = new List<string>() { EditorCategory.Cache }; _searchParams = new Dictionary<string, string>(); }
public TagEditPortlet() { Name = "Tag edit"; Description = "Portlet for editing tags (context bound)"; Category = new PortletCategory(PortletCategoryType.Application); }
/// <summary> /// Initalize the portlet name and description /// </summary> public BookCalendarPortlet() { Name = "Book calendar"; Description = "Portlet for displaying upcoming books in calendar view (context bound)"; Category = new PortletCategory(PortletCategoryType.Application); }
public TagDeletePortlet() { Name = "Tag delete"; Description = "Portlet for deleting tags (context bound)"; Category = new PortletCategory(PortletCategoryType.Application); }
public TagCloudPortlet() { IncludeChildren = false; Name = "Tag cloud"; Description = "Portlet for rendering a tag cloud"; Category = new PortletCategory(PortletCategoryType.Application); }
/// <summary> /// Default constructor. /// </summary> public TagAdminPortlet() { Name = "Tag admin"; Description = "Portlet for administrating tags"; Category = new PortletCategory(PortletCategoryType.Application); Tags = "/Root/System/Tags"; UITools.AddStyleSheetToHeader(UITools.GetHeader(), "$skin/styles/SN.Tagging.css"); }
public VotingQuestionAddNewPortlet() { Name = "Voting question creator"; Description = "This portlet creates a new question (if there is no other one) for the given voting (context bound)"; Category = new PortletCategory(PortletCategoryType.ContentOperation); }
public static void ImportCategory(PortletCategory category, IEnumerable<Node> repoCategories) { var categoryName = GetValidName(category.Title); var parent = GetPortletFolder(); if (parent == null) throw new InvalidOperationException("Portlets folder does not exist."); // check if already exists if (repoCategories.Any(c => c.Name == categoryName)) return; // create category node var categoryNode = Content.CreateNew("PortletCategory", parent, categoryName); categoryNode["DisplayName"] = category.Title; categoryNode["Description"] = category.Description; categoryNode.Save(); }
public ContentSearchPortlet() { Name = SenseNetResourceManager.Current.GetString(ResourceCalssName, "PortletTitle"); Description = SenseNetResourceManager.Current.GetString(ResourceCalssName, "PortletDescription"); Category = new PortletCategory(PortletCategoryType.Search); }