forked from DNNCommunity/DNN.Showcase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
View.ascx.cs
37 lines (34 loc) · 1.2 KB
/
View.ascx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using DotNetNuke.Services.Exceptions;
using System;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Entities.Modules;
namespace Dnn.Showcase
{
partial class View : ModuleBase, IActionable
{
public ModuleActionCollection ModuleActions
{
get
{
ModuleActionCollection Actions = new ModuleActionCollection();
if (IsEditable)
{
Actions.Add(GetNextActionID(), "Manage Sites", ModuleActionType.AddContent, "", "", EditUrl("SiteList"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
Actions.Add(GetNextActionID(), "Manage Categories", ModuleActionType.AddContent, "", "", EditUrl("CategoryList"), false, DotNetNuke.Security.SecurityAccessLevel.Edit, true, false);
}
return Actions;
}
}
protected new void Page_Load(Object sender, EventArgs e)
{
try
{
base.Page_Load(sender, e);
}
catch (Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex);
}
}
}
}