Exemple #1
0
        /// <summary>
        /// Gets the settings based on the homepage for the current Umbraco page.
        /// This method will only work if called within the Umbraco pipeline e.g. it will fail for ajax requests.
        /// </summary>
        /// <returns></returns>
        public GigyaDsSettings GetForCurrentSite()
        {
            var homepageId = GigyaSettingsHelper.CurrentHomepageId();
            var model      = Get(homepageId);

            return(model);
        }
Exemple #2
0
        /// <summary>
        /// Creates a new Gigya DS helper with the settings for the current site.
        /// </summary>
        /// <returns></returns>
        public static GigyaUmbracoDsHelper Instance()
        {
            var homepageId = GigyaSettingsHelper.CurrentHomepageId();

            return(Instance(homepageId));
        }