Displaying info on the Sitecore login page

26 augustus 2014 om 00:00 by Ruud van Falier - Post a comment

I recently came across a Sitecore instance that displayed information about the version of the custom binaries in the Sitecore login screen.
It seems like a useful thing to do, but I don't think a lot of people know how to do it (including me until I saw this instance).
Turns out it's very easy!

There is a pipeline called getAboutInformation that is used to retrieve the data that is displayed in the login screen underneath the Sitecore version number.
Here is some example code of a processor for this pipeline:

using Sitecore.Pipelines.GetAboutInformation;

public class GetVersion
  public void Process(GetAboutInformationArgs args)
    string version = ""; // Dynamically get the version somehow

    args.LoginPageText = string.Concat("Platform ", version);

Add this processor to the getAboutInformation pipeline with a little piece of include configuration:

    <processor type="YourAssembly.GetVersion, YourAssembly" />

Now browse to the Sitecore login screen to see the result!
This is especially handy when builds and deployments are automated and you need to keep track of which version is running.