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.IO; | |
using System.Linq; | |
using Tridion.ContentManager.ContentManagement; | |
using Tridion.ContentManager.Extensibility; | |
using Tridion.ContentManager.Extensibility.Events; | |
namespace Tridion.EventSystem | |
{ |
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
<a href="javascript: (function (UI, B, e, a, r, d) | |
{ | |
try | |
{ | |
while (r = UI.frames[e++]) | |
{ | |
if ((a = r.$display && r.$display.getView()) && a.getId() == B) | |
{ | |
d = a; | |
break; |
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 ServiceStack.DataAnnotations; | |
using ServiceStack.OrmLite; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ |
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.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 |
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" ?> | |
<configuration> | |
<appSettings> | |
<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"/> | |
</appSettings> | |
</configuration> |
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
string endpointName = "netTcp_2013"; | |
SessionAwareCoreServiceClient client = new SessionAwareCoreServiceClient(endpointName); | |
client.Impersonate(System.Web.HttpContext.Current.User.Identity.Name); | |
// Actions- Publish a page, create Component, etc |
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 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) |
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
'''''''''''''''''''''''''''''''''''''' | |
' APRIL FOOLS! | |
' | |
' For serious fun, go grab a copy of the Razor Mediator and enjoy the power of .Net and a close to TOM API! | |
' https://code.google.com/p/razor-mediator-4-tridion/ | |
''''''''''''''''''''''''''''''''''''''' |
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
<% | |
' 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 |
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"?> | |
<Configuration xmlns="http://www.sdltridion.com/2009/GUI/Configuration/Merge" | |
xmlns:cfg="http://www.sdltridion.com/2009/GUI/Configuration" | |
xmlns:ext="http://www.sdltridion.com/2009/GUI/extensions" | |
xmlns:cmenu="http://www.sdltridion.com/2009/GUI/extensions/ContextMenu"> | |
<resources cache="true"> | |
<cfg:filters /> | |
<cfg:groups/> | |
</resources> |
OlderNewer