Skip to content

Instantly share code, notes, and snippets.

View jarnohenneman's full-sized avatar

Jarno Henneman jarnohenneman

View GitHub Profile
@jarnohenneman
jarnohenneman / Odata
Last active August 29, 2015 14:07
Reload SmartTarget custom trigger-types.
http://[webapplication]/odata.svc/ComponentPresentations
http://odata.electridion.com/odata.svc/ComponentPresentations
@jarnohenneman
jarnohenneman / VisualStudio
Last active August 29, 2015 14:05
Tips : “Remove and Sort” Namespaces using Shortcut in Visual Studio 2013 (probably other versions too)
Tools > Options > Environment > Keyboard
Show commands containing:
Edit.RemoveAndSort
Press shortcut keys:
Ctrl + Shift + W
Assign
@jarnohenneman
jarnohenneman / VisualStudio
Created August 11, 2014 09:45
Change IIS express to Use64BitIISExpress instead of 32bit. In Visual Studio there is an option below Tools->Options->Projects & Solutions->Web Projects->Use 64 bit version of IIS Express for websites and projects. This might not always have desired effects there for my personal preference goes to changing the registry. Open the terminal as Admin…
Visual Studio 2012:
reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\WebProjects /v Use64BitIISExpress /t REG_DWORD /d 1
Visual Studio 2013:
reg add HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\WebProjects /v Use64BitIISExpress /t REG_DWORD /d 1
@jarnohenneman
jarnohenneman / BinaryUpload.cs
Created June 22, 2014 17:33
A simple event extension on the component save initiated, part of blogpost: http://jarnohenneman.com/2014/06/BinaryUpload-event/
using System;
using Tridion.ContentManager.ContentManagement;
using Tridion.ContentManager.ContentManagement.Fields;
using Tridion.ContentManager.Extensibility;
using Tridion.ContentManager.Extensibility.Events;
using Tridion.Logging;
namespace Trial.and.Error.BinaryUploadEvent
{
[TcmExtension("BinaryUploadEvent")]