Getting Started with WAE v2.0 Free Edition
Replacing MCMS DefaultConsole With WAE Popup Console
After installation you can find console in <MCMS Installation path>\Server\IIS_CMS\Console folder and use it as usual. To insert the popup console on a page add following code to your aspx file:
<%@ Register TagPrefix="cms" TagName="DefaultConsole" Src="~/CMS/Console/DefaultConsole.ascx" %>
…
<cms:DefaultConsole runat="server"/>
ITHit.MCMS.dll is placed to Global Assembly Cache during installation, so you do not have to add any files to your \bin folder. Run the page and call the console double clicking on it.
Customizing Popup Console
Customization of WAE Popup Console is similar to customizing DefaultConsole provided with MCMS.
- Copy DefaultConsole.ascx located in <MCMS Installation path>\Server\IIS_CMS\CMS\Console\ folder to your project to \Console dirctory.
- Add following code to your aspx file. It will insert the popup console on a page:
<%@ Register TagPrefix="cms" TagName="DefaultConsole" Src="~/Console/DefaultConsole.ascx" %> … <cms:DefaultConsole runat="server"/>
- Modify your copy of DefaultConsole.ascx file. Add, delete or replace console actions as usual. The only difference is you have to specify: target="_parent" and href="javascript: <%# Container.ActionJavascript %>;"
<%@ Register TagPrefix="uc1" Namespace="MyNamespace" Assembly="MyAssembly" %> … <uc1:MyAction runat="server"> <A target="_parent" href="javascript: <%# Container.ActionJavascript %>;"><%# Container.Text %></A> </uc1:MyAction>
Modifying Existing Console
In case you want to keep your original console you can place Kill Lock console action shipped with WAE to your console. Add following code to your console file:
<%@ Register TagPrefix="WAEConsole" Namespace="ITHit.ContentManagement.WebControls.ConsoleControls" Assembly="ITHit.MCMS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d3b943114a582a0c" %> … <WAEConsole:KillLockAction runat="server"> <a href="#" onclick="<%# Container.ActionJavascript %>;return false"> <%# Container.Text %> </a> <br> </WAEConsole:KillLockAction>
Telerik r.a.d. Editor MCMS Edition Integration
You can integrate the new WAE Select Internal Link dialog with Telerik r.a.d. Editor MCMS Edition.
- Copy RadControls folder under <MCMS Installation path>\Server\IIS_CMS.
- Replace LinkDialog.js file located in
<MCMS Installation path>\Server\IIS_CMS\RadControls\Editor\Scripts with files shipped with WAE located in <MCMS Installation path>\Server\Telerik\RadEditorPlaceHolder_<Version>\RadControls\Editor\Scripts
Replacement of LinkDialog.js is only required to find selected item in a tree structure when clicking “…” button in “Hyperlink Manager” dialog.
|