Skip to content

Instantly share code, notes, and snippets.

View davidpanzarella's full-sized avatar

David Panzarella davidpanzarella

View GitHub Profile
@davidpanzarella
davidpanzarella / scrubEmptyParamRelationships
Last active August 29, 2015 14:05
Remove any empty grouping tags from the Current Params
<!--- start: scrub empty param relationships --->
<cffunction name="scrubEmptyParamRelationships" output="false" returntype="query">
<cfargument name="query" required="true">
<cfset local.openList = "" />
<cfset local.closeList = "" />
<cfset local.removeList = "" />
<cfloop query="arguments.query">
<cfif relationship eq "andOpenGrouping">
<cfscript>
public any function getChildrenFeedByContentID(
required contentid
, string type=''
, string subtype=''
) {
var local = {};
local.feed = $.getBean('feed');
local.feed.setMaxItems(0);
@davidpanzarella
davidpanzarella / Location Extended Attributes
Last active December 25, 2015 07:29
This is a collection of Common Extended Attributes for Mura CMS. Pick and choose which is applicable to your project's content strategy.
<extension type="Page" subtype="Location">
<attributeset name="Location Options" container="Basic">
<attribute
name="locationAddress1"
label="Address Line 1"
hint="Enter Address Line 1 of the location"
required="true" />
<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>
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 40px;
}
a {
display: inline-block;