John's profileJohn West Blogs about Si...PhotosBlogLists Tools Help

Blog


    9/26/2008

    Passwords? We Don't Need No Stinkin' passwords!

    You can avoid the need to enter your password every time you log in to Sitecore. This could save you literally seconds each day, almost as much time as it takes to read this post or implement the change.
     
    Add code such as the following within the <asp:Login> control in /sitecore/login/default.aspx:
     
    <tr>
      <td colspan="2" align="center">
        <asp:Checkbox ID="RememberMe" runat="server" Text="Rememeber Me"></asp:Checkbox>
      </td>
    </tr>
     
    Log in to Sitecore (I use the desktop, haven't tried the other interfaces) and bookmark the URL. Close the browser without logging out. Re-open the browser and access the bookmark.

    Updated 30.June.2009: Sitecore CMS 6.1 includes the Remember Me feature by default.

    9/6/2008

    Remove Sitecore Grid Designer

    If you don't intend to use Sitecore Grid Designer, you can remove it from both Content Editor and Developer Center.

    To remove Grid Designer in Content Editor, update the data templates for layouts and sublayouts:

    1. Navigate to a layout.
    2. On the Configure tab, click Edit in the Template group.
    3. Click Options in the Builder Options tab, and then click Standard Values in the Template group.
    4. Click the Configure tab.
    5. In the Appearance group, click the Editors command. The Custom Editors dialog appears.
    6. Remove Grid Designer from the Selected list.
    7. Navigate to a sublayout and perform steps 2 through 6.

    To remove Grid Designer from Developer Center, you have to replace the code-behind for /sitecore/shell/Applications/Layouts/IDE/Editors/HTML/IDE Html Editor.xml. This code should do:

    namespace Namespace.Shell.Applications.Layouts.IDE.Editors.HTML
    {
      public class IDEHtmlEditorForm : Sitecore.Shell.Applications.Layouts.IDE.Editors.HTML.IDEHtmlEditorForm
      {
        protected override void OnLoad(EventArgs e)
        {
          base.OnLoad(e);
    
          if (this.DesignButton != null)
          {
            this.ShowDesign();
          }
        }
      }
    }
    

    In /sitecore/shell/Applications/Layouts/IDE/Editors/HTML/IDE Html Editor.xml, comment this:

    <CodeBeside Type="Sitecore.Shell.Applications.Layouts.IDE.Editors.HTML.IDEHtmlEditorForm,Sitecore.Client"/>
    

    and add this, replacing Namespace and Assembly with your namespace and assembly.

    <CodeBeside Type="Namespace.Shell.Applications.Layouts.IDE.Editors.HTML.IDEHtmlEditorForm,Assembly"/>
    

    You might also want to move the Grid tab to the end of the tab strip. Move this:

    <Toolbutton ID="GridButton" Header="Grid" Icon="Business/16x16/table_edit.png" IconSize="id16x16" Down="true" Click="ShowGrid" ToolTip="Show Grid Editor Mode"/>
    

    after this:

    <Toolbutton ID="LiveButton" Icon="Network/16x16/earth_view.png" IconSize="id16x16" Click="ShowLiveMode" ToolTip="Toggle Live Mode"/>
    

    9/5/2008

    Disable Word 2007 Full Screen Reading View for Attachments

    I find it really annoying that Word uses the Full Screen Reading View when I open an email attachment. The solution is very simple, but even so I will manage to forget it, so I am posting it here:

    -Open an attachment in Full Screen Reading View.
    -Click View Options in the top right corner.
    -Select "Don't Open Attachments in Full Screen".

    If you want to change it back:

    -Click the View tab.
    -In the Document Views group, click Full Screen Reading.
    -Click View Options in the top right corner.
    -Clear "Don't Open Attachments in Full Screen".