-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SFBuild
committed
May 15, 2020
1 parent
bc5938d
commit fc69eff
Showing
125 changed files
with
894 additions
and
973 deletions.
There are no files selected for viewing
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
Telerik.Sitefinity.Frontend.Blogs/Mvc/Helpers/BlogHelper.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Telerik.Sitefinity.Frontend.Comments/Mvc/Scripts/comments-list.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
Telerik.Sitefinity.Frontend.Comments/Mvc/Scripts/comments-list.min.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.