Skip to content

Instantly share code, notes, and snippets.

View rob-ot-dot-be's full-sized avatar

Rob De Vries rob-ot-dot-be

View GitHub Profile

Multiple sys_category fields in one table

When your table has more than 1 field with relations to sys_category you will run into problems because the MM relation table sys_category_record_mm will only store which table a category belongs to - but not the specific field.

You need to extend sys_category_record_mm like this:

Add the following to your extension's ext_tables.sql:

CREATE TABLE sys_category_record_mm (
@Demwunz
Demwunz / _base.scss
Created March 9, 2012 15:35
SASS: susy/html5-boilerplate starter
// This file must be imported before loading html5-boilerplate
// Imports -------------------------------------------------------------------
@import "compass/css3";
@import "compass/typography/vertical_rhythm";
// Grid (http://susy.oddbird.net/) -----------------------------------------------------
//
@import "susy";
@daKmoR
daKmoR / Example.html
Created October 14, 2011 14:05
GroupedForDateTimeViewHelper for Fluid
<div class="itemsListYearMonth">
<a:groupedForDateTime each="{items}" as="itemsByYear" groupBy="start" format="Y" groupKey="year">
<a:groupedForDateTime each="{itemsByYear}" as="itemsByMonth" groupBy="start" format="m" dateTimeKey="month">
<div class="yearMonth clearfix">
<div class="timeframe" data-behavior="FixTimeframe">
{month -> f:format.date(format: 'F Y')}
</div>
<f:for each="{itemsByMonth}" as="item">
<div class="item">
<p class="startEnd"><a:format.duration start="{item.start}" end="{item.end}" /></p>
<!doctype html>
<html lang="en">
<head>
<title>Huge Dropdown Menu (example)</title>
<style type="text/css">
body {
background-color: #86c6d7;