Skip to content

Instantly share code, notes, and snippets.

Robert Curlette rcurlette

Block or report user

Report or block rcurlette

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
View gist:e0faf9fde0951cb29b40
using System;
using System.IO;
using System.Linq;
using Tridion.ContentManager.ContentManagement;
using Tridion.ContentManager.Extensibility;
using Tridion.ContentManager.Extensibility.Events;
namespace Tridion.EventSystem
rcurlette / CountItemsBookmarklet
Created Dec 18, 2014
Tridion Count Items Bookmarklet
View CountItemsBookmarklet
<a href="javascript: (function (UI, B, e, a, r, d)
while (r = UI.frames[e++])
if ((a = r.$display && r.$display.getView()) && a.getId() == B)
d = a;
rcurlette / OrmLiteExample.SqlServer
Last active Aug 29, 2015
ServiceStack ORMLite SqlServer example
View OrmLiteExample.SqlServer
using ServiceStack.DataAnnotations;
using ServiceStack.OrmLite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
rcurlette / EventSystem.dll.config
Last active Aug 29, 2015
Sample EventSystem.dll.config
View EventSystem.dll.config
<?xml version="1.0" encoding="utf-8" ?>
<add key="ConnectionString" value="Server=ServerX;Database=DbX;User Id=User;Password=pw123"/>
<add key="PublicationConfigComponentWebdavUrl" value="/webdav/002%20Web/Building%20Blocks/System/SystemComponents/PublicationConfigSettings%20DEFAULT.xml"/>
rcurlette / TridionEventSystemAppConfigHelper
Last active Aug 29, 2015
Tridion Event System app.config helpers
View TridionEventSystemAppConfigHelper
using System;
using System.Configuration;
using System.Reflection;
using System.Runtime.Caching;
namespace Tridion.EventSystem
/// <summary>
/// Configuration file should be named the same as the Event System DLL with '.config' at the end.
/// ie. TridionEventSystem.dll.config
View GetTridionPublishTargets
private List<TridionItem> GetPublishTargets(string publicationUri, SessionAwareCoreServiceClient client)
List<TridionItem> pubTargetList = new List<TridionItem>();
var pubTargets = client.GetSystemWideList(new PublicationTargetsFilterData());
foreach (PublicationTargetData pubTargetdata in pubTargets)
PublicationTargetData target = (PublicationTargetData)client.Read(pubTargetdata.Id, new ReadOptions());
LinkToPublicationData[] pubDataItems = target.Publications;
foreach (LinkToPublicationData publicationData in pubDataItems)
View CoreServiceImpersonation
string endpointName = "netTcp_2013";
SessionAwareCoreServiceClient client = new SessionAwareCoreServiceClient(endpointName);
// Actions- Publish a page, create Component, etc
View VBScriptMediator
' For serious fun, go grab a copy of the Razor Mediator and enjoy the power of .Net and a close to TOM API!
rcurlette / ShowTemplateSource.asp
Created Mar 15, 2012
Tridion ShowTemplateSource Custom Page
View ShowTemplateSource.asp
' Author: Robert Curlette
' Date updated: 15 March, 2012
Option Explicit
Response.Buffer = true
' Get All CT Source
Dim objTDSE : set objTDSE = CreateObject("TDS.TDSE")
Dim templateRootFolder
dim ctFolderUri, tbbFolderUri, ptFolderUri
rcurlette / ListViewTcm.config
Created Apr 4, 2012
Tridion 2011 DataExtender URI Column Example config
View ListViewTcm.config
<?xml version="1.0"?>
<Configuration xmlns=""
<resources cache="true">
<cfg:filters />
You can’t perform that action at this time.