Example #1
0
        private List<string> GetOrderedSkinNames(IInputContext inputContext)
        {
            List<string> orderedSkinNames = new List<string>();

            if (inputContext.DoesParamExist("skin", "Chekc to see if we've been given a skin param"))
            {
            orderedSkinNames.Add(inputContext.GetParamStringOrEmpty("skin", "Preferred skin to use. Overrides user preference and the URL skin name. Only skins which belong to the current site are valid. An invalid skin will be ignored"));
            }

            if (inputContext.DoesParamExist("_sk", "Check to see if we've been given a _sk param"))
            {
            orderedSkinNames.Add(inputContext.GetParamStringOrEmpty("_sk", @"Skin passed in as part of the URL. /dna/sitename/skinname/pagetype will be transformed so that the _sk parameter contains the skin specified by the URL"));
            }

            return orderedSkinNames;
        }