Skip to content

Instantly share code, notes, and snippets.

@cedricziel
cedricziel / ext_tables.php
Created May 4, 2015 20:47
Add a custom doktype to TYPO3 pages table
<?php
/**
* Custom Doktypes
*/
// Define a new doktype
$customShortlinkDoktype = 120;
$customPageIcon = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/Shortlink.png';
// Add the new doktype to the list of page types
$GLOBALS['PAGES_TYPES'][$customShortlinkDoktype] = array(
@jimmystridh
jimmystridh / dropbox2yt.user.js
Created March 19, 2014 14:06
UserScript to fetch the embed link from a Dropbox share link, and embed in youtrack
// ==UserScript==
// @name YouTrack Dropbox Embed
// @namespace http://visit.com/
// @version 0.1
// @description inserts an image from a dropbox url
// @match https://youtrack.internal.visit.com/*
// @copyright 2012+, Jimmy
// ==/UserScript==
(function(){