Wednesday, May 9, 2012

Slow Page Load and Missing Placeholders and Properly hiding SubLayouts

Sometimes when developing a page, you need to remove a sub-layout from a page temporarily.  It is very tempting to rename the placeholder to a non-existing placeholder sometimes simply putting an x or zzz on the end.  This will work to hide the items but you will get a performance penalty of 1.6 ms.

A better way to do this is simply clear the Placeholder field.  When rendering Sitecore will skip sub-layouts where the placeholder field is empty but if you place anything in the placeholder field then Sitecore must look in the layout or sub-layouts for the placeholder.  

If this does not solve your issue with the page loading then the other option is the Sitecore Debug.

If you login to the Sitecore Admin in Desktop view you will see a Debug menu option in the Sitecore Menu.
Clicking on it will open the site in debug mode.  Navigate to the slow page.  Once it loads scroll down and you will see the breakdown of components loading.  As well if you scroll down further you will see a trace.  Sometimes you will see warnings in the trace and this may solve your problem.  This is how I found and solved the missing placeholder issue.

If you have any tips, tricks or resources you would like to share please email them to sitecoreguild@outlook.com

Thursday, May 3, 2012

The First Sitecore Development book scheduled for release May 29, 2012

As a Sitecore Developer I can't wait to get my hands on a copy of Professional Sitecore Development By John West especially after seeing the following in the Amazon description.
  • Addresses installing and configuring Sitecore.
  • Touches on some of the more advanced features of Sitecore, including other APIs, pipelines, and configuration files
Once you have your own copy I would love to hear comments on parts of the book that helped you as they may direct others that have similar needs.

While we wait for the book release please check out his blog at John West - Sitecore Blog there is a lot of really useful information.

Tuesday, May 1, 2012

Toronto Sitecore Technical User Group is Meeting May 30, 2012

These user group meetings are great places to meet others working with Sitecore and to learn some new things
as well.

Here are the details:
Toronto Sitecore Technical User Group - May 2012
Wednesday, May 30, 2012 from 5:30 PM to 7:30 PM (ET)
Toronto, Ontario
Click here to register.  Look forward to seeing you there.

Thursday, April 12, 2012

Sitecore 6.2 and Change Password link on Login Page broken

I found in an installation of Sitecore 6.2 that the Change Password link on the Login page was broken.
Instead of going to sitename/sitecore/login/changepassword.aspx it was going to sitename/sitecore/changepassword.aspx

The fix is to look in the \Inetpub\wwwroot\sitecore\Website\sitecore\login folder and open the ChangePassword.aspx page.  Search for "ChangePassword" Change the a href to read:


<a class="LoginOption" href="login/changepassword.aspx">Change Password</a>

This will resolve the issue and you will get the change password page.

If you have any tips, tricks or resources you would like to share with the Guild, please email sitecoreguild@outlook.com

Wednesday, April 11, 2012

Installing Glass

For fans of SkyRim you may know that Glass is the weapon of choice.  In the Sitecore Realm the same applies.
Glass Sitecore Mapper is an object mapping framework for mapping Sitecore items directly onto an object model allowing you to model your entire Sitecore solution as a data model. The framework handles converting data to and from fields and pulling data from related items.
Instructions to install Glass
  1. Join the Glass Google Group.  Its the place to go for support:
  2. Install Powershell 2.0 if you don't have it already.
    It is available at: http://support.microsoft.com/kb/968929
  3. Install NuGet Package Manager for Visual Studio. Available at:

    http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c

  4. The following link provides detailed information on installing NuGet:

     http://docs.nuget.org/docs/start-here/installing-nuget

  5. Make sure you open your solution in visual studio you want to install glass on.
  6. Install Castle.Core from Nuget using "Install-Package Castle.Core"
    This is required because Glass is build upon these base classes.
  7. Install Glass from Nuget using "Install-Package Glass.Sitecore.Mapper".
    If it installs correctly go to step 9.  If not check step 8 below.
    The following link has more information on how to do this:

     http://www.glass.lu/?page_id=462

  8. When installing the package you may get an error like the following:
    Could not install package 'MostAwesomePackageEvar 1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.
         Don't fret it just takes a manual step.
    •  Click on your project and click on the reference to Castle.Core
    • Right click and click on properties.
    • Copy the reference path.
    • Remove the reference and attempt to re-add it by pasting the path you copied but remove the filename.
           Navigate up a directory and choose the net40-client directory.  You will end up with a path ending in \packages\Castle.Core.3.0.0.4001\lib\net40-client\Castle.Core.dll
    • Redo the install in step 6
  9. Visit The Glass Google Group and Glass.Sitecore.Mapper Wiki and read up on usage.
If you have any tips, tricks or resources you would like to share with the Guild please email them to sitecoreguild@outlook.com

Wednesday, February 22, 2012

Sitecore custom error pages

In ASP.NET its as simple as a single web.config key (customerrors), but for Sitecore there
are a few added steps that need to be done like making sure your page is in the ignoreurls and
changing the other Sitecore Custom Error settings.

I found a really good article that walks you through this step by step:

Sitecore Custom Error Pages

If you have any tips, tricks, articles or resources you would like to share with the guild,
please email them to sitecoreguild@outlook.com or post them as comments.

Friday, January 20, 2012

The security settings for the current language prevent you from seeing this item. To continue, select another language from the Language drop-down list on the Versions tab.

I saw a few blog posts on this error but took me a while to figure out what the real solution was.  Here is a description of the error and how to resolve it.

Problem: A user is assigned access to edit content in the Content Editor but when they click on an item to edit they get the following error:

The security settings for the current language prevent you from seeing this item.
To continue, select another language from the Language drop-down list on the Versions tab.
Reason: In the content editor on the Master database there is a folder  at /system/languages
This folder has a new security key called language:read and language:write.  By default this is assigned to sitecore\everyone.  This is fine provided that only local users are accessing the content editor but if you are using ad domain\everyone will be default be denied.

Solution: Click on security and access viewer.  Navigate to /system/languages.  click on assign and assign the {your domain}\everyone access to language:read and language:write.   If you want to do this for a specific language you can open the folder click on the language and set these access properties there.