Some 1.3 tricks to protect your non-tech cms users from bad mistakes

Feb 6, 2010 at 7:44 PM

in HtmlEditor.ascx, to prevent direct html code:

<FTB:FreeTextBox runat="server" ID="ftbEditor" Width="100%" ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker,FontBackColorsMenu,FontBackColorPicker|Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImageFromGallery|Cut,Copy,Paste,Delete;Undo,Redo,Print|SymbolsMenu|InsertRule,InsertDate,InsertTime;InsertTable" AllowHtmlMode="false" EnableHtmlMode="false" />

in Default.aspx.cs, to prevent Easy Controls

if (t.IsClass && (t.GetInterface("ISection") != null) && (!t.IsAbstract)

&& (t.Name != "EasyControl")

)

in WebSite.aspx, to hide sensitive smtp settings and language options:

<!--tr><td><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Website_Language%>"></asp:Localize></td>

..to..

<td><asp:TextBox runat="server" ID="txtSmtpDomain" Visible="False"></asp:TextBox></td></tr -->

in WebSite.aspx, to prevent version checking, comment out:

<!--tr><td></td><td><asp:CheckBox runat="server" ID="chkEnableVersionChecking" Text="<%$ Resources:stringsRes, adm_Website_EnableVersionChecking%>" /><br />

<a href="Default.aspx"><asp:Localize runat="server" Text="<%$ Resources:stringsRes, adm_Website_ShowVersionInfo%>" /></a></td></tr-->

in WebSite.aspx, to prevent accidentally 'resetting' website comment out:

<!--tr><td colspan="2" align="right"><asp:Button runat="server" ID="btnReset" OnClick="btnReset_Click" Text="<%$ Resources:stringsRes, adm_Website_Reset%>"></asp:Button></td></tr-->

- Joe