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