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
protected void Application_Error() | |
{ | |
//Sitefinity Logger should send to raygun now | |
var exception = Server.GetLastError(); | |
//Send document requests over to login | |
if(exception.Message.Contains("You are not authorized to 'View document'") || exception.Message.Contains("You are not authorized to 'View image'")){ | |
if (!ClaimsManager.GetCurrentIdentity().IsAuthenticated) | |
{ | |
//If user is anonymous, send them to the login |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Telerik.Sitefinity; | |
using Telerik.Sitefinity.Model; | |
using Telerik.Sitefinity.DynamicModules; | |
using Telerik.Sitefinity.Data.Linq.Dynamic; | |
using Telerik.Sitefinity.Services.Search; | |
using Telerik.Sitefinity.Utilities.TypeConverters; | |
using ServiceStack.Text; |
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
private const string ExecuteDataIntelligenceSubmitScriptFormat = "(function() {{\r\n var jqueryXhrModified = false;\r\n var detectjs = false;\r\n var executeDataIntelligenceScript = function() {{\r\n var source;\r\n if (!window.JSON) {{\r\n source = '{0}';\r\n }} else if (!window.jQuery) {{\r\n source = '{1}';\r\n }} else if (!jqueryXhrModified) {{\r\n source = '{2}';\r\n jqueryXhrModified = true;\r\n }} else if (!detectjs) {{\r\n source = '{3}';\r\n detectjs = true;\r\n }} else if (!window.DataIntelligenceSubmitScript) {{\r\n source = '{4}';\r\n }} else if (!window.sfDataIntell) {{\r\n source = '{5}';\r\n }} else {{\r\n return DataIntelligenceSubmitScript.load({6});\r\n }}\r\n var script = document.createElement('script');\r\n script.type = 'text/javascript';\r\n var callback = function() {{\r\n if (!this.rea |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<root> | |
<modules> | |
<module name="RadEditorStatistics" dockingZone="Bottom" visible="false" /> | |
<module name="RadEditorDomInspector" visible="true" /> | |
<module name="RadEditorNodeInspector" visible="false" /> | |
<module name="RadEditorHtmlInspector" visible="false" /> | |
</modules> | |
<tools name="MainToolbar"> | |
<tool name="ToggleAdvancedToolbars" /> |
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
public static Document UploadFile(string fileTitle, Stream fileStream, string fileExtension, DocumentLibrary album, Guid folderId, List<Guid> categories, List<Guid> tags, string provider = "") | |
{ | |
if (album != null) | |
{ | |
LibrariesManager manager = LibrariesManager.GetManager(provider); | |
manager.Provider.SuppressSecurityChecks = true; | |
string urlname = Util.UrlNameFilter(fileTitle); | |
Document document = null; | |
//Check for document |
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
using System; | |
using System.Linq; | |
using System.Security.Principal; | |
using System.Threading; | |
using System.Web; | |
using Telerik.Sitefinity.Security; | |
using Telerik.Sitefinity.Security.Model; | |
using Telerik.Sitefinity.Services; | |
namespace Telerik.Sitefinity.TestUtilities.CommonOperations.Permissions.Api |
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
protected virtual $2$ $1$ | |
{ | |
get{ | |
return this.Container.GetControl<$2$>("$1$", true); | |
} | |
} |
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
-- the old name of the form | |
declare @oldName nvarchar(30) = 'sf_table_name'; | |
-- the new name of the form | |
declare @newName nvarchar(30) = 'sf_table_name'; | |
-- rename the table with form entries | |
exec sp_rename @oldName, @newName; | |
-- change the form name in the forms description | |
update [sf_form_description] |
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
@using Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers; | |
@if (ViewContext.Controller.GetIndexRenderMode() == Telerik.Sitefinity.Web.UI.IndexRenderModes.Normal) | |
{ | |
<div>FROM LAYOUT</div> | |
} |
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
<!-- Regular Sample --> | |
<telerik:RadListView ID="dynamicContentListView" ItemPlaceholderID="ItemsContainer" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"> | |
<LayoutTemplate> | |
<div class="sf_cols"> | |
<asp:PlaceHolder ID="ItemsContainer" runat="server" /> | |
</div> | |
</LayoutTemplate> | |
<ItemTemplate> | |
<div class='<%# Util.Out(Container) %>'> | |
<div class='<%# Util.In(Container) %>'> |
OlderNewer