Skip to content

Instantly share code, notes, and snippets.

gregwiechec

Block or report user

Report or block gregwiechec

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gregwiechec
gregwiechec / CustomUriContextResolver.cs
Created Jun 21, 2016
Deleting single file from trash
View CustomUriContextResolver.cs
using System;
using EPiServer.Cms.Shell.UI.Rest;
using EPiServer.Cms.Shell.UI.Rest.Models;
using EPiServer.Framework;
using EPiServer.Framework.Initialization;
using EPiServer.ServiceLocation;
using EPiServer.Shell.Rest;
namespace ContentAreaWithPreview.Business
{
@gregwiechec
gregwiechec / ContentAreaEditor.js
Created Jun 13, 2016
Adding random items to ContentArea
View ContentAreaEditor.js
define([
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/when",
"dojo/on",
"dojo/dom-construct",
"epi/dependency",
"epi-cms/contentediting/editors/ContentAreaEditor"
],
function (
@gregwiechec
gregwiechec / FakeStringFragment.cs
Created Jun 6, 2016
Rendering current page in ContentArea
View FakeStringFragment.cs
using System.Collections.Generic;
using ContentAreaWithPreview.Models.Pages;
using EPiServer;
using EPiServer.Core;
using EPiServer.Core.Html.StringParsing;
using EPiServer.Security;
using EPiServer.Web;
namespace ContentAreaWithPreview.Plugin
{
@gregwiechec
gregwiechec / textarea with statistics - styles
Created May 20, 2016
textarea with statistics property
View textarea with statistics - styles
.extended-textArea .textArea-wrapper {
display: inline-block;
}
.extended-textArea textarea {
width: 500px;
}
.extended-textArea .statistics {
display: inline-block;
@gregwiechec
gregwiechec / FavouriteContent.cs
Last active Sep 16, 2016
Editor Favourite Content
View FavouriteContent.cs
using EPiServer.Shell.ViewComposition;
namespace FavouriteContentList.Business.FavouriteContent
{
[Component]
public class FavouriteContent : ComponentDefinitionBase
{
public FavouriteContent()
: base("favourites.favouriteContentComponent")
{
View ExtendedCollectionEditor.js
define([
"dojo/_base/array",
"dojo/_base/declare",
"dojo/_base/lang",
"epi-cms/contentediting/editors/CollectionEditor",
"alloy/editors/extendedFormatters"
],
function (
array,
declare,
@gregwiechec
gregwiechec / CreateContentViewModel.js
Created Nov 6, 2015
Show additional properties on content creation
View CreateContentViewModel.js
define("epi-cms/contentediting/viewmodel/CreateContentViewModel", [
// dojo
"dojo/_base/array",
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/_base/json",
"dojo/Stateful",
"dojo/string",
"dojo/when",
@gregwiechec
gregwiechec / CompareWithMarkup.cs
Created Oct 22, 2015
EPiServer compare with markup
View CompareWithMarkup.cs
using EPiServer.Core;
using EPiServer.ServiceLocation;
using EPiServer.Shell;
namespace ExtendingCompareVersion.Business.ViewConfiguration
{
[ServiceConfiguration(typeof(EPiServer.Shell.ViewConfiguration))]
public class CompareWithMarkup : ViewConfiguration<IContentData>
{
public CompareWithMarkup()
@gregwiechec
gregwiechec / SoftLinkIndexerTool.aspx
Created Oct 5, 2015
EPiServer Admin plugin - Reindex Soft Links
View SoftLinkIndexerTool.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SoftLinkIndexerTool.aspx.cs" Inherits="ChildrenGridView.Plugins.SoftLinkIndexerTool" %>
<asp:Content ContentPlaceHolderID="MainRegion" runat="server">
<asp:Button runat="server" Text="Run" OnClick="OnClick"/>
<asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
</asp:Content>
@gregwiechec
gregwiechec / ArticleWithSlider.cs
Created Sep 29, 2015
Content references list with preview
View ArticleWithSlider.cs
[SiteContentType(GUID = "263B8330-791D-4A5E-BAE4-E7B59F93D3FB")]
public class ArticleWithSlider: ArticlePage
{
[UIHint(MultipleReferencesEditorWithPreviewDescriptor.UiHint)]
[Display(GroupName = SystemTabNames.Content, Name = "Carousel", Order = 100)]
public virtual IList<ContentReference> ContentReferencesCollection { get; set; }
}
You can’t perform that action at this time.