Skip to content

Instantly share code, notes, and snippets.

View jaygilmore's full-sized avatar
🕳️
🐇

Jay Gilmore jaygilmore

🕳️
🐇
View GitHub Profile
@jaygilmore
jaygilmore / randomChunkRevo.php
Last active December 10, 2015 21:08
A MODX Revolution Version of Sal Sodano's RandomChunk to randomly display Chunks. Ideally used with Jason Coward's getCache.
<?php
/*
* RandomChunk
* Salvatore Sodano
* http://salscode.com
* Revolution Version 2013, Jay Gilmore aka smashingred
* [[!RandomChunk? &chunks=`chunk1, chunk2`]]
* Randomly generates a chunk from a comma separated list of chunks.
*
*/
@jaygilmore
jaygilmore / TinyMCECustomToolbar.txt
Created March 21, 2012 18:45
TinyMCE Minimal Custom Toolbar for MODX. Gives end users just the tools they need to create and publish content—nothing more.
formatselect,styleselect,bold,italic,underline,bullist,numlist,pastetext,image,modxlink,unlink,anchor,media,removeformat,separator,code,help
@jaygilmore
jaygilmore / QuickCrumbs Example
Created September 16, 2011 12:36
Call and Chunks used in QuickCrumbs on MODX.com
<!--Call-->
<div id="crumbs">
<nav class="container">
<ul>
[[QuickCrumbs?
&tpl=`Crumb`
&selfTpl=`Here`
&siteStartTpl=`Home`
&separator=``
&hideEmptyContainers=`1`
@jaygilmore
jaygilmore / searchable-field-noindex
Created September 15, 2011 14:40
Using an Output Filter to tell robots not to index a page when the "Searchable" field is unchecked.
[[*searchable:is=``:then=`<meta name="robots" content="noindex,nofollow">`:else=``]]