@ -74,11 +74,14 @@
|
|||||||
}
|
}
|
||||||
if (authorized)
|
if (authorized)
|
||||||
{
|
{
|
||||||
// get module control title
|
if (PageState.Control != "Settings")
|
||||||
string title = (string)moduleType.GetProperty("Title").GetValue(moduleobject);
|
|
||||||
if (title != "")
|
|
||||||
{
|
{
|
||||||
module.Title = title;
|
// get module control title
|
||||||
|
string title = (string)moduleType.GetProperty("Title").GetValue(moduleobject);
|
||||||
|
if (title != "")
|
||||||
|
{
|
||||||
|
module.Title = title;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
builder.OpenComponent(0, Type.GetType(Constants.DefaultContainer));
|
builder.OpenComponent(0, Type.GetType(Constants.DefaultContainer));
|
||||||
builder.AddAttribute(1, "ModuleState", module);
|
builder.AddAttribute(1, "ModuleState", module);
|
||||||
|
@ -1,4 +1,17 @@
|
|||||||
@using Oqtane.Themes
|
@using Oqtane.Themes
|
||||||
@inherits ContainerBase
|
@inherits ContainerBase
|
||||||
|
|
||||||
@ModuleState.Title
|
@title
|
||||||
|
|
||||||
|
@functions {
|
||||||
|
string title = "";
|
||||||
|
|
||||||
|
protected override void OnInit()
|
||||||
|
{
|
||||||
|
title = ModuleState.Title;
|
||||||
|
if (PageState.Control == "Settings")
|
||||||
|
{
|
||||||
|
title = PageState.Control;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user