/// <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); }
/// <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)); }