What you would need to do is to implement the Community IModule interface, where the property AdministrationControl is a reference to the URL of the user control that should be loaded.
There is an attribute ModuleDisplay that you set for the class, where you can manage whether the module should be in the menu and in the access rights UI.
namespace ####
{
[ModuleDisplay(true, true)]
public class PageEntityModule : IModule
{
public string UniqueName
{
get { return "pagestest"; }
}
public string Name
{
get { return "Pages Test"; }
}
public string AdministrationControl
{
get { return "~/Lib/Shared/Controls/ModerateCommentsGuiPlugin.ascx"; }
}
public static PageEntityModule Instance
{
get;
set;
}
public void OnApplicationStart(CommunityContext context)
{
Instance = this;
}
}
}
Does it show up under System Settings -> Modules -> EPiServer Community?
I would guess that the problem is that no one has access to your new module.
Yep, gave permissions to groups:
and to some users of ours just to be on safe and still I cannot see the option on the menu.
Thanks.
Otavio Soccol
I have now looked further into this and what I found is that I was wrong, sorry about misleading you like that.
The menu system only uses this information for the list of modules in the access rights listing.
The actual list of available modules in the main menu is static, which means that you would have to edit the CommunityMenu.ascx file.
Hi Håkan,
Many thanks for your help, managed to get it done here!
Otavio Soccol
Hi,
I've been assigned with the task of implementing an admin GUI to moderate comments on a community implementation that allow users to comment pages.
I have successfully implemented an EditPanel PlugInArea tab that allow editors to view and delete comments for now, but I also want to allow editors to moderate comments for the whole site via a custom community module without having to navigate to each page to do that.
Has anyone made it to implement a community module that gets added to the list of modules under the Community tab next to "At-A-Glance" , "User Management" , "Forum" , "Clubs" , "Expert" etc?
Thanks in advance.
Otavio Soccol