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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Telerik.Sitefinity | |
{ | |
public static class CollectionExtensions | |
{ | |
/// <summary> |
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) %>'> |
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 col sample --> | |
<div class="sf_cols"> | |
<div class="sf_colsOut sf_2cols_1_50"> | |
<div class="sf_colsIn sf_2cols_1in_50"> | |
</div> | |
</div> | |
<div class="sf_colsOut sf_2cols_2_50"> | |
<div class="sf_colsIn sf_2cols_2in_50"> | |
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.Web; | |
using Telerik.Sitefinity.Configuration; | |
using Telerik.Sitefinity.DynamicModules.Model; | |
using System.Web.UI; | |
using Telerik.Sitefinity.Model; | |
using Telerik.Sitefinity.Model.ContentLinks; | |
using Telerik.Sitefinity.Modules.Libraries; | |
using Telerik.Sitefinity.SitefinityExceptions; |
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 Telerik.Sitefinity.Services; | |
namespace SitefinityWebApp | |
{ | |
public class Global : System.Web.HttpApplication | |
{ | |
protected void Application_Start(object sender, EventArgs e) | |
{ |
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 OnDownloadPDF_Click(object sender, EventArgs e) { | |
string output = ""; | |
byte[] buffer = new byte[0]; | |
string filename = "file" | |
string html = Util.GetHtmlToExport(); //However you want...this is a fake stub | |
var thread = new Thread(() => | |
{ | |
Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider provider = new Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider(); |
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
<rule name="Default Document" stopProcessing="true"> | |
<match url="(.*)" ignoreCase="true" /> | |
<conditions logicalGrouping="MatchAny" trackAllCaptures="false"> | |
<add input="{REQUEST_URI}" pattern="^\/home$" /> | |
<add input="{REQUEST_URI}" pattern="^\/default.aspx$" /> | |
</conditions> | |
<action type="Redirect" url="/" appendQueryString="false" redirectType="Permanent" /> | |
</rule> | |
<rule name="RedirectToWWW" enabled="true" stopProcessing="true"> | |
<match url=".*" /> |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Download.aspx.cs" Inherits="SitefinityWebApp.Download" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
<script type="text/javascript"> | |
var max_time = 5; | |
var cinterval; |
OlderNewer