Sitecore, Utveckling

Sitecore C# Sitemap in two columns

8 aug , 2012  

SiteMap

I recently build a dynamic generated SiteMap User Control for a multi site Sitecore solution translated in multiple languages. I wanted it to render links to publishable page items in two columns instead of just printing it out as a long list on the page.

Läs mer »

, ,

Sitecore, Utveckling

Snabbkommandon till Sitecore knappar

27 apr , 2012  

SitecoreKeyMap

Det finns många bra snabbkommandon i Sitecore så man slipper använda musmarkören och klicka på knappar för att genomföra saker. T.ex. Ctrl + s för att spara ett item eller F2 för att byta namn. Men det finns många knappar som inte är uppmappade t.ex. Display Name. Det är en bra funktion bl.a. för att kunna språkversionera url:en. Här beskriver jag hur man gör för att mappa upp Sitecore-knappar med snabbkommandon på tangentbordet.
Läs mer »

,

Sitecore, Utveckling

Sitecore safe deploy process

10 mar , 2012  

This is an example of a safe deploy process for a Sitecore environment with one content management server (CM) and two or more web front servers (content delivery CD). The website will be up and running without any interruptions that would affect the customers and you will be able to safely do the code deploy and install the Sitecore packages.

Läs mer »

,

Sitecore, Utveckling

Sitecore clear cache on site publish

8 mar , 2012  

When you publish a site in Sitecore, you might need to clear the cache on the web front server to be able to view your item changes.

The clear cache setting is configured in the web.config file in the site root. Here you need to specify all the sites you wish to activate cache clearing when you publish a site. You also have to specify all your sites in a site definition .config file under Sitecore\Website\Include\App_Config\. When you have a lot of sites to manage I prefer to keep one file up to date instead of two files separately.

Läs mer »

,

Sitecore, Utveckling

Sitecore asp.net c# social media share function using jQuery and css sprite

7 feb , 2012  

Share Sprite

I recently build a social media share function for Facebook, Twitter, LinkedIn and Google+ in a Sitecore CMS solution. There is also an add to favorites in Internet Explorer and Bookmark for Mozilla Firefox. The icons slides out when clicking the share-icon using jQuery toggle. The icons are all stored in one image using CSS sprite technique.

Läs mer »

, ,

Sitecore, Utveckling

C# funktion för att läsa pipe-separerade värden till en array

25 feb , 2011  

Behövde hämta ut pipe-separerade värden från ett fält i Sitecore och skrev ihop den här funktionen för att spara dem till en array:

public string[] getPipedSeparatedFieldValues(string fieldName)
{
    var fieldValues = CurrentItem.Fields[fieldName].Value;
    if (!string.IsNullOrEmpty(fieldValues))
    {
        string[] fieldValue = fieldValues.Split('|');
        string[] fieldArray = new string[fieldValue.Count()];
        int arrayIndex = 0;
        foreach (string value in fieldValue)
        {
            fieldArray[arrayIndex++] = value;
        }
        return fieldArray;
    }
    return null;
}

, ,

Sitecore, Utveckling

Sitecore prerequisites Windows 2008 and 2012 R2 x64

23 dec , 2010  

Vid installation av Sitecore 6.2 eller 6.4 görs först en kontroll om vissa komponenter finns installerade på klienten.  
För att lösa dessa prerequisites gör följande på en Windows 2008 R2 x64:

Läs mer »

, ,