Custom View In Asset Panel
[ Authorize ( Roles = "WebEditors, WedAdmins, Administrators" ) ]
public class CustomViewController : BasePageController < CustomPage >
{
public ActionResult Index ( )
{
return PartialView ( "~/Views/Widgets/CustomView/Index.cshtml" ) ;
}
}
<?xml version =" 1.0" encoding =" utf-8" ?>
<module >
<dojoModules >
<add name =" jondjones" path =" Scripts/widgets" />
</dojoModules >
</module >
CustomViewInAssetPane/Views/Widgets/CustomView/Index.cshtml
ClientResources/Scripts/widgets/jondjones/CustomView.js
define ( [
"dojo/_base/declare" ,
"dijit/_WidgetBase" ,
"dijit/_TemplatedMixin"
] , function (
declare ,
_WidgetBase ,
_TemplatedMixin
) {
return declare( "jondjones.jondjones.CustomView" ,
[ _WidgetBase , _TemplatedMixin ] , {
templateString : dojo. cache ( "/en/customview" )
} ) ;
} ) ;
ClientResources/Scripts/widgets/jondjones/UserManual.js
define ( [
"dojo/_base/declare" ,
"dijit/_WidgetBase" ,
"dijit/_TemplatedMixin"
] , function (
declare ,
_WidgetBase ,
_TemplatedMixin
) {
return declare ( "jondjones.jondjones.UserManual" ,
[ _WidgetBase , _TemplatedMixin ] , {
templateString : dojo . cache ( "/Static/UserGuide/ContentEditorsUserManual.html" )
} ) ;
} ) ;
Static/UserGuide/ContentEditorsUserManual.html
< div >
< h3 > Content Editors User Manual< / h3>
< a href= "./ContentPage.html" > Content Page< / a>
< / div>
Static/UserGuide/ContentPage.html
< div >
Information goes here
< / div>