Skip to content

Instantly share code, notes, and snippets.

View chadcrowell's full-sized avatar

Chad Crowell chadcrowell

View GitHub Profile
{# LOGIC #}
{% set navItems = craft.facetedNavigation.buildFacets(['productType', 'productOrigin', 'textileType']) %}
{% set relationParam = ['and'] %}
{% set params = {
status: 'live',
section: 'products',
orderBy: 'title asc',
limit: null,
Unknown Property: Setting unknown property: craft\fields\MissingField::layout
Migration: doublesecretagency\smartmap\migrations\m190310_000000_smartMap_addPositionToFieldLayouts
Output:
Exception: Setting unknown property: craft\fields\MissingField::layout (/Users/Chad/Sites/aamgi/vendor/yiisoft/yii2/base/Component.php:209)
#0 /Users/Chad/Sites/aamgi/vendor/doublesecretagency/craft-smartmap/src/migrations/m190310_000000_smartMap_addPositionToFieldLayouts.php(81): yii\base\Component->__set('layout', Array)
#1 /Users/Chad/Sites/aamgi/vendor/craftcms/cms/src/db/Migration.php(56): doublesecretagency\smartmap\migrations\m190310_000000_smartMap_addPositionToFieldLayouts->safeUp()
#2 /Users/Chad/Sites/aamgi/vendor/craftcms/cms/src/db/MigrationManager.php(243): craft\db\Migration->up(true)
<link rel='stylesheet' id='hotspotter-css' href='http://swishdev.com/jquery-hotspotter.min.css' type='text/css' media='all' />
<script src="http://swishdev.com/jquery.js"></script>
<script src="http://swishdev.com/jquery-hotspotter.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
//Run plugin when DOM is ready
$('.hs-area').hotspotter();
});
trust lawyer marin
trust lawyer san rafael
trust lawyer mill valley
trust lawyer tiburon
trust law firm marin
trust law firm san rafael
trust law firm mill valley
trust law firm tiburon
trust attorney marin
trust attorney san rafael
{% set year = 'now'|date('Y') %}
{% set dateParam = 'and, >= ' ~ year ~ '-01-01, < ' ~ (year + 1) ~ '-01-01' %}
{% set events =
calendarSettings.eventListing
.eventDate(dateParam)
.order('eventDate asc')
%}
<div class="row">
@chadcrowell
chadcrowell / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chadcrowell
chadcrowell / gist:5348469
Created April 9, 2013 19:08
Mass delete files from Basecamp Classic. Open files tab in project, paste this into your console and press Enter when prompted to delete each file.
var els = document.querySelectorAll('.left .trash'); for(var i = 0; i < els.length; i++) { els[i].click(); }
<script type="text/javascript" src="http://use.typekit.com/eai4lyi.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
Reeposition, an ExpressionEngine add-on by Studio625
ExpressionEngine Development » Reeposition » Variables and Variable Pairs
Variables and Variable Pairs
Temporary documentation…
{reeposition:redirect="404"}
Some users reported that versions of Reeposition prior to 1.3 interfered with code like { if no_results}{ redirect="404"}{ /if}. If you are having problems with redirects, use {reeposition:redirect="wherever"} instead.
{exp:repeet:parse date_header_interval="day"}
{exp:repeet:get_ids weblog="events" parse="inward" begin="today" end="6 days"}
{exp:weblog:entries weblog="events" entry_id="{repeet:entry_ids}" dynamic="off" show_expired="yes" show_future_entries="yes"}
{repeet:item}
{repeet:entry_date}{entry_date format="%Y-%m-%d %H:%i"}{/repeet:entry_date}
{repeet:expiration_date}{expiration_date format="%Y-%m-%d %H:%i"}{/repeet:expiration_date}
{repeet:interval}{cf_events_interval}{/repeet:interval}
{repeet:include_dates}{cf_events_repeat_include}{/repeet:include_dates}