Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev tools: Added an example of how a plugin can integrate a page into…
… the backend
- Loading branch information
Showing
5 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Plugins/SmartStore.DevTools/Models/BackendExtensionModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using SmartStore.Web.Framework.Mvc; | ||
|
||
namespace SmartStore.DevTools.Models | ||
{ | ||
public class BackendExtensionModel : ModelBase | ||
{ | ||
public string Welcome { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/Plugins/SmartStore.DevTools/Views/DevTools/BackendExtension.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@using SmartStore.DevTools.Models; | ||
@model BackendExtensionModel | ||
@{ | ||
Layout = "~/Administration/Views/Shared/_AdminLayout.cshtml"; | ||
|
||
ViewBag.Title = "My SmartStore.NET backend extension page"; | ||
} | ||
|
||
<div class="section-header"> | ||
<div class="title"> | ||
<i class="fa fa-area-chart"></i> | ||
My SmartStore.NET backend extension page | ||
</div> | ||
</div> | ||
|
||
<div> | ||
@Model.Welcome | ||
</div> |
7ed2041
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See forum