diff --git a/AssemblyInfoShare/SharedAssemblyInfo.cs b/AssemblyInfoShare/SharedAssemblyInfo.cs index 4928ccbec..551fbbf60 100644 Binary files a/AssemblyInfoShare/SharedAssemblyInfo.cs and b/AssemblyInfoShare/SharedAssemblyInfo.cs differ diff --git a/Telerik.Sitefinity.Frontend.Blogs/Mvc/Helpers/BlogHelper.cs b/Telerik.Sitefinity.Frontend.Blogs/Mvc/Helpers/BlogHelper.cs new file mode 100644 index 000000000..c8f0795c1 --- /dev/null +++ b/Telerik.Sitefinity.Frontend.Blogs/Mvc/Helpers/BlogHelper.cs @@ -0,0 +1,27 @@ +using System; +using Telerik.Sitefinity.Frontend.Blogs.Mvc.Models.Blog; +using Telerik.Sitefinity.Frontend.Mvc.Models; + +namespace Telerik.Sitefinity.Frontend.Blogs.Mvc.Helpers +{ + public static class BlogHelper + { + public static string GetDetailPageUrl(ItemViewModel item, Guid detailsPageId, BlogDetailLocationMode blogDetailLocationMode) + { + try + { + return DetailLocationHyperLinkHelper.GetDetailPageUrl(item, detailsPageId, blogDetailLocationMode); + } + catch (ArgumentException ex) + { + // When the default page is delete, the blog should be rendered as a normal blog without default page. + if (ex.Message.Contains("Invalid details page")) + { + return null; + } + + throw; + } + } + } +} diff --git a/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/DesignerView.Simple.cshtml b/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/DesignerView.Simple.cshtml index f996ab74b..267f69b08 100644 --- a/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/DesignerView.Simple.cshtml +++ b/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/DesignerView.Simple.cshtml @@ -45,7 +45,7 @@ @@ -53,7 +53,7 @@ @@ -72,7 +72,7 @@ @Html.Raw(String.Format(Html.HtmlSanitize((string)Html.Resource("DivideToItemPerPage")).ToString(), - "")) + "")) @@ -84,7 +84,7 @@ @Html.Raw(String.Format(Html.HtmlSanitize((string)Html.Resource("ShowLimitedItems")).ToString(), - "")) + "")) diff --git a/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/List.BlogList.cshtml b/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/List.BlogList.cshtml index a10a8bb76..dc22f218a 100644 --- a/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/List.BlogList.cshtml +++ b/Telerik.Sitefinity.Frontend.Blogs/Mvc/Views/Blog/List.BlogList.cshtml @@ -4,6 +4,7 @@ @using Telerik.Sitefinity.Frontend.Blogs.Mvc.Helpers; @using Telerik.Sitefinity.Frontend.Blogs.Mvc.Models.Blog; @using Telerik.Sitefinity.Frontend.Mvc.Helpers; +@using Telerik.Sitefinity.Frontend.Mvc.Models; @using Telerik.Sitefinity.Modules.Pages;
@string.Format(Html.Resource("ActivationLinkHasBeenSent"), Model.Email)
- @Html.Resource("SendAgain") +@Html.Resource("DefaultSuccessfulRegistrationMessage")
+ - } - else - { - using (Html.BeginFormSitefinity(true)) + + @Html.Script(Url.WidgetContent("Mvc/Scripts/Registration/registration-form.js"), "bottom", throwException: false) + } + else if ((Request.QueryStringGet("ShowSuccessfulRegistrationMsg") == "true") || + (ViewBag.ShowSuccessfulRegistrationMsg is bool && ViewBag.ShowSuccessfulRegistrationMsg)) { - @Html.ValidationSummary(true); +@Html.Resource("DefaultSuccessfulRegistrationMessage")
-