This file contains hidden or 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
/// <summary> | |
/// Get an IQueryable result of Dynamic Content Items filtered by multiple categories | |
/// </summary> | |
/// <param name="categoryIds"></param> | |
/// <param name="dynamicType"></param> | |
/// <returns></returns> | |
private IQueryable<DynamicContent> GetItemsByCategories(Guid[] categoryIds, Type dynamicType) { | |
// Get the DynamicModule manager | |
var dynamicModuleManager = DynamicModuleManager.GetManager(); |
This file contains hidden or 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.Localization; | |
using Telerik.Sitefinity.Localization.Data; | |
namespace Falafel.Sitefinity.Modules.Twitter { | |
[ObjectInfo(typeof(TwitterWidgetResources), Title = "TwitterWidgetResourcesTitle", Description = "TwitterWidgetResourcesDescription")] | |
public class TwitterWidgetResources : Resource { | |
#region Constructors |
This file contains hidden or 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger] | |
"DisableAttachSecurityWarning"=dword:00000001 | |
[HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\VisualStudio\9.0\Debugger] | |
"DisableAttachSecurityWarning"=dword:00000001 | |
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger] | |
"DisableAttachSecurityWarning"=dword:00000001 |
This file contains hidden or 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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HighlightView.ascx.cs" Inherits="SitefinityWebApp.Widgets.News.HighlightView" %> | |
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %> | |
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Comments" Assembly="Telerik.Sitefinity" %> | |
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %> | |
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> | |
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %> | |
<telerik:RadListView ID="NewsList" ItemPlaceholderID="ItemsContainer" OnItemDataBound="NewsList_ItemDataBound" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"> | |
<LayoutTemplate> | |
<sf:ContentBrowseAndEditToolbar ID="MainBrowseAndEditToolbar" runat="server" Mode="Add"></sf:ContentBrowseAndEditToolbar> |
This file contains hidden or 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
<compilation debug="false" targetFramework="4.5" numRecompilesBeforeAppRestart="50" tempDirectory="D:\Cache\"> |
This file contains hidden or 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
[ControllerToolboxItem(Name = "MessageWidget", Title = "Message Widget", SectionName = "MvcWidgets")] | |
public class MessageWidgetController : Controller |
This file contains hidden or 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
SELECT * | |
FROM sf_page_node | |
WHERE content_id IN (SELECT page_id | |
FROM sf_object_data | |
WHERE caption_ = '<caption of layout control - e.g. grid-12>') |
This file contains hidden or 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
SELECT * | |
FROM sf_page_templates | |
WHERE id IN (SELECT page_id | |
FROM sf_object_data | |
WHERE caption_ = '<caption of layout control - e.g. grid-12>') |
This file contains hidden or 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 class ControlToExport | |
{ | |
public string ControlCaption { get; set; } | |
public bool IsLayoutControl { get; set; } | |
public string ObjectType { get; set; } | |
public string Placeholder { get; set; } | |
public DateTime LastModified { get; set; } | |
public string PageTitle { get; set; } | |
public string PageStatus { get; set; } | |
public string TemplateTitle { get; set; } |
This file contains hidden or 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
/// <summary> | |
/// Get Grid and Layout controls from pages and templates | |
/// </summary> | |
private void GetGridAndLayoutControlsFromPagesAndTemplates() | |
{ | |
// Store controls in collection | |
var controlsToExport = new List<ControlToExport>(); | |
// Get a PageManager and suppress security checks | |
var pageManager = PageManager.GetManager(); |
OlderNewer