Skip to content

Instantly share code, notes, and snippets.

View curtisblackwell's full-sized avatar

Curtis Blackwell curtisblackwell

View GitHub Profile
curtisblackwell /
Last active December 31, 2015 16:59
Support for Markdown in Statamic's dashboard.

Markdown in Statamic Dashboard

Replace admin/themes/ascent/templates/dashboard.php with this dashboard.php.


If you're using tables, you'll also need to include the override add-on with the following directory structure:



curtisblackwell /
Last active January 2, 2016 01:38
Statamic Suggest Hack

Statamic Suggest Hack

This is a hack on Statamic's Suggest fieldtype to allow options to be passed in via a separate file. This way global variables can populate the options.


Paste the code from ft.suggest.hack.php into cp/fieldtypes/suggest/ft.suggest.php after the "Hardcoded list of options" section.

In your fieldset, do something like this:


display: Brand

curtisblackwell /
Created March 2, 2013 08:47
Non-Destructive Sass Twitter Bootstrap Gutterless Fluid Grid Hack

Non-Destructive Sass Twitter Bootstrap Gutterless Fluid Grid Hack


Sometimes I need a row sans gutters. This uses the same mixins and whathaveyou to create another grid that sits alongside the normal grid.

Difference in Markup

You'll need to wrap your .row-fluid in a .gutterless div.

curtisblackwell /
Created October 14, 2012 09:16
Statamic setup script


Discontinued in favor of Statamechanic.

Legacy Info

This script will:

  1. Remove the following files/directories:
    • _config/fieldsets/* (everything in dir)
    • _config/settings.yaml.sample
  • _config/users/admin.yaml.sample
curtisblackwell / index.haml
Created October 3, 2012 13:45
Any Image to CSS by Emad Elsaid
Any Image to CSS converter
%label Choose Image:
%label PixelSize:
%label Space:
$zip = new ZipArchive;
$res = $zip->open('');
if ($res === TRUE) {
$zip->extractTo(dirname(__FILE__)); // Same dir
echo 'ok';
} else {
echo 'failed';
{!-- Snippet: ban_member_snippet --}
{if can_moderate_comment}
[<a href="{cp_url}?S=0&D=cp&C=addons_modules&M=show_module_cp&module=comment&method=index&entry_id={entry_id}">delete &amp; ban</a>]
{!-- Template --}
<p>{url_as_author} wrote: {ban_member_snippet}</p>
curtisblackwell / Custom.css
Created September 7, 2011 03:36 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/* IR_Black Skin by Ben Truyman - 2011
/* Based on Todd Werth's IR_Black:
/* Inspired by Darcy Clarke's blog post:
curtisblackwell / pagination
Created August 22, 2011 11:28
Pagination snippet using [Bjørn Børresen's AB Pagination]( and [Mark Croxton's Switchee](
This will only work if embedded in another switchee tag pair.
If it's not embedded, change the {switchee} tags to {exp:switchee}.
{switchee variable="{abp_has_previous}"}
{case value="1"}
curtisblackwell / index.html
Created August 13, 2011 10:03
Cache and resize images in entries using Lumis imgsizer, Matrix, and Stash
1. Matrix: images
* File: image
* PT Pill: alignment (left, right, or block)
* Text: description
* PT Pill: width
2. Textarea/WYSIWYG: body