Skip to content

Instantly share code, notes, and snippets.

View jsieber's full-sized avatar

John Sieber jsieber

  • BlueLine Development
  • Missoula, Montana
View GitHub Profile
@jsieber
jsieber / muraCategoryIteratorExamples.cfm
Created September 12, 2018 23:18 — forked from stevewithington/muraCategoryIteratorExamples.cfm
Mura CMS: Category Iterator Examples
<cfscript>
// Category Iterator of Children of the Current Content Node
itKidsCats = $.content().getKidsCategoryIterator();
// Category Iterator of the CURRENT Content Node
itCats = $.content().getCategoriesIterator();
</cfscript>
<cfoutput>
<!--- Children of the Current Content Node --->
<h4>Kids Categories</h4>
<cfif itKidsCats.hasNext()>
@jsieber
jsieber / dsp_custom_search.cfm
Created September 11, 2018 21:49 — forked from stevewithington/dsp_custom_search.cfm
Mura CMS: Custom Search Example
<cfoutput>
<div>
<form action="#$.content('url')#?keywords=#$.event('keywords')#">
<dl>
<dt>Keywords</dt>
<dd><input type="text" name="keywords" value="#HTMLEditFormat($.event('keywords'))#" /></dd>
<dd><input type="submit" value="Search" /></dd>
</dl>
@jsieber
jsieber / muraRebuildImageCache.cfm
Created September 11, 2018 20:42 — forked from stevewithington/muraRebuildImageCache.cfm
Mura CMS: Rebuild image cache or re-save images on redefined image sizes
<!--- Force Image Resave for All Images --->
<cfset application.serviceFactory.getBean('fileManager').rebuildImageCache(siteid='YOURSITEID')>
<!--- or to just reset a specific image size you can use --->
<cfset application.serviceFactory.getBean('fileManager').rebuildImageCache(siteid='YOURSITEID' ,size='YOURSIZE')>
@jsieber
jsieber / mura-json-api.cfm
Created December 7, 2017 03:22 — forked from stevewithington/mura-json-api.cfm
Mura CMS: JSON API Tests & Examples
<!---
Author: Stephen J. Withington, Jr.
Notes: Place this under a temp directory within your Mura CMS root to test.
For example: http://yourdomain.com/temp/json-test.cfm
--->
<cfscript>
param name="form.endpoint" default="content/new";
param name="form.method" default="GET";
param name="form.context" default="";
param name='session.siteid' default='default';
@jsieber
jsieber / app.css
Created November 14, 2017 03:05 — forked from scottdomes/app.css
React Audio Tutorial
body {
background: #f9f9f9;
font-family: 'Open Sans', sans-serif;
text-align: center;
}
#container {
position: relative;
z-index: 2;
padding-top: 100px;
@jsieber
jsieber / test.cfm
Created May 11, 2017 17:43
Mura tag conditional content
[m]setDynamicContent(now() lt '2017-05-5' ? '<p>We don&rsquo;t have to extol the health benefits of cycling to you. When you donate to the USBRS, you&rsquo;re supporting more signed routes and the active exploration that goes with them.</p> <p>Plus, U.S. Bicycle Routes create economically healthy communities. As cyclists, we know that eating well is half the fun of bike touring: a cinnamon roll from the corner bakery, bananas from a market. A study of bike tourism in Montana showed bike travel adds up to big dollars in communities!</p>' : '')[/m]
@jsieber
jsieber / callback.html
Last active April 25, 2017 04:39
Spotify Favorites
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<script>
window.onload = function () {
var hash = window.location.hash;
if (window.location.search.substring(1).indexOf("error") !== -1) {
@jsieber
jsieber / config.xml.cfm
Created December 20, 2016 19:29 — forked from stevewithington/config.xml.cfm
Mura CMS v7: Sample YouTube Display Object
<displayobject name="YouTube Video" contenttypes="*"/>
@jsieber
jsieber / index.html
Created November 3, 2016 21:50
Mapzen example
<!DOCTYPE html>
<html lang="en">
<head>
<title>One Minute Map</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
#map {
height: 100%;
@jsieber
jsieber / index.html
Created October 4, 2015 04:40
Light Gallery Example
$(document).ready(function() {
$("#lightGallery").justifiedGallery({
rowHeight : 150,
lastRow : 'nojustify',
margins : 10
}).on('jg.complete', function() {
$("#lightGallery").lightGallery({
startClass: '',
useLeft: true,
thumbnail: false,