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
@stevewithington
stevewithington / config.xml.cfm
Last active September 17, 2020 10:26
Mura CMS v7: Sample YouTube Display Object
<displayobject name="YouTube Video" contenttypes="*"/>
component {
/*
Parts of this are based on Tim Dawe's
http://amazonsig.riaforge.org
and
Joe Danziger's Amazon S3 REST Wrapper
http://amazons3.riaforge.org/
// ==== GPT NEWSLETTER CODE ==== //
<div>
<a href="http://[STATIC_HTML_PAGE_URL].html?iu=[AD_ZONE_GOES_HERE]&sz=728x90&tile=1&c=12345678" target="_blank">
<img alt="" border="0" height="90" width="728" src="http://pubads.g.doubleclick.net/gampad/ad?iu=[AD_ZONE_GOES_HERE]&sz=728x90&tile=1&c=12345678">
</a>
</div>
// ==== STATIC HTML PAGE CODE ==== //
@adamdehaven
adamdehaven / bgimage.css
Last active September 19, 2024 13:29
Bootstrap full-width hero section with text and image
.bgimage {
width:100%;
height:500px;
background: url('https://images.unsplash.com/photo-1438109491414-7198515b166b?q=80&fm=jpg&s=cbdabf7a79c087a0b060670a6d79726c');
background-repeat: no-repeat;
background-position: center;
background-size:cover;
background-attachment: fixed;
}
.bgimage h5 {
@ronnieduke
ronnieduke / gist:a77da30f1e20fbaf84d1
Created July 16, 2015 17:19
Mura Categories Iterator
<cfoutput>
<cfset catList="">
<cfset it=$.content().getCategoriesIterator()>
<!--- Only run if there are categories applied to the page --->
<cfif it.hasNext()>
<!--- Loop through the categories and append them to the list --->
<cfloop condition="it.hasNext()">
<cfset cat=it.next()>
<!--- Append the current category to the list --->
@stevewithington
stevewithington / mura-json-api.cfm
Last active December 14, 2020 18:11
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';
@jeaguilar
jeaguilar / gist:83a3e784d4b02f390887
Last active March 12, 2019 02:52
Mura Settings.ini.cfm documented and undocumented settings
@pauldenato
pauldenato / getContentByLastUpdateAndCredits.cfm
Last active December 30, 2015 00:42 — forked from stevewithington/getCustomSearch.cfm
Get the Content a User most Recently Updated or is Credited in.
<!--- Adapted from Steve's original gist - https://gist.github.com/stevewithington/5880459 getCustomSearch.cfm --->
<!--- Needed a way to display content a user was credited for or had edited on the front end --->
<!---Add this to the Theme or Site contentrenderer.cfc--->
<cffunction name="getUserActivity" output="no">
<cfargument name="authorid" default="" required="yes" />
<cfscript>
var local = {};
local.feed=$.getBean('feed');
@stevewithington
stevewithington / muraCategorizedContent.cfm
Last active October 5, 2018 17:56
Mura CMS: How to loop over categories and output any categorized content.
<cfoutput>
<cfset cats = 'Weather,Local News,Arts & Culture' />
<ul>
<cfloop array="#ListToArray(cats)#" index="c">
<li>
<h3>#HTMLEditFormat(c)#</h3>
<cfscript>
catBean = $.getBean('category').loadBy(name=c, siteid=$.event('siteid'));
feed = $.getBean('feed');
<cffunction name="onContentEdit">
<cfargument name="$" />
<cfset var scripts = ''>
<cfif $.getSubType() Eq 'Vacancy'>
<cfsavecontent variable="scripts">
<script>
jQuery(document).ready(function($){
var newSummary = 'Vacancy summary ' + '<br /><span style="font-weight:normal">Place the single line vacancy description here, this will be visible in the vacancy search</span>';
$('.summaryContainer label a').html(newSummary);