Skip to content

Instantly share code, notes, and snippets.

View low's full-sized avatar
🤖
Multi-tasking

Lodewijk Schutte low

🤖
Multi-tasking
View GitHub Profile
@low
low / low-search-live.js
Last active September 24, 2015 07:56
Low Search Live
/* Requires jQuery */
(function($){
var LowSearchLive = function(el) {
var $keywords = $(el),
$form = $keywords.closest('form'),
resultPage = $keywords.data('result-page'),
threshold = $keywords.data('threshold') || 4,
wait = $keywords.data('wait') || 750,
@low
low / low-variables-v2-fieldtype-bridge.md
Created November 25, 2015 13:23
Docs for the Low Variables Fieldtype Bridge for ExpressionEngine 2.

Low Variables v2 Fieldtype Bridge

Instead of making a variable type, you can also choose to create or modify a custom fieldtype. In order to add Low Variables support to your fieldtype, just create it like you normally would, using Pixel & Tonic’s FieldFrame v1.4.3+ for EE1, or EE2’s Fieldtype API. Then, all you need to do is add a couple of methods to your fieldtype class. It’s a lot like adding Matrix support.

display_var_field (required)

Displays the input field on the module home page. You can access the current variable id with $this->var_id.

Arguments

@low
low / events-cal.html
Created November 17, 2016 10:33
Using Ajax to navigate through a Low Events calendar for ExpressionEngine
{!-- events/cal template --}
{if segment_2 == 'cal'}
{preload_replace:pre_date="{segment_3}"}
{/if}
{if segment_2 != 'cal'}
{preload_replace:pre_date="{segment_2}"}
{/if}
{exp:low_events:calendar date="{pre_date}"}