Skip to content

Instantly share code, notes, and snippets.

<fieldset>
<div class="form-group">
<label for="exampleInputPassword1">Immobilientyp</label>
<select name="category[]" id="type" class="form-control">
{exp:channel:categories category_group="2" style="linear"}
<option value="{category_id}"{if category_id IN ({low_search_category})} selected{/if}>
{category_name}
</option>
RewriteEngine On
RewriteBase /
# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/system/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
@franzos
franzos / gist:a889451e42e3ee60576e
Created September 10, 2014 23:24
ExpressionEngine Conditionals: if:elseif
{categories}
{if voice_talent_headshot:thumb80 *= "http"}
{voice_talent_headshot:thumb80}
{if:elseif category_id == '4'}
{assets}/images/headshot-man.png
{if:else}
{assets}/images/headshot-woman.png
{/if}
{/categories}
@franzos
franzos / gist:13a7eb4ec60990c00447
Created April 11, 2015 09:46
Bolt CMS: Filter entries by category
{% setcontent records = "blog/latest/10" where { 'entry_categories': 'Development' } %}
{% for record in records %}
<h1><a href="{{ record.link }}">{{ record.title }}</a></h1>
{% endfor %}

Keybase proof

I hereby claim:

  • I am franzos on github.
  • I am franzs (https://keybase.io/franzs) on keybase.
  • I have a public key whose fingerprint is E52D 8D5F C127 5988 4FAD B923 8317 15D0 785D 4F0C

To claim this, I am signing this object:

@franzos
franzos / jekyll-minimagick.rb
Last active October 5, 2016 10:29
Fix Error: jekyll 3.2.1 | Error: uninitialized class variable @@mtimes in Jekyll::JekyllMinimagick::GeneratedImageFile
require 'mini_magick'
module Jekyll
module JekyllMinimagick
class GeneratedImageFile < Jekyll::StaticFile
# Initialize a new GeneratedImage.
# +site+ is the Site
# +base+ is the String path to the <source>
# +dir+ is the String path between <source> and the file
@franzos
franzos / pipedrive-search.html
Last active October 26, 2017 08:27
Pipedrive API and Vue.js 2: Search
<!--
Pipedrive API and Vue.js 2: Search
https://developers.pipedrive.com/docs/api/v1/#!/SearchResults/get_searchResults
-->
<script src="https://unpkg.com/vue"></script>
<div id="demo">
<h1>Search via Pipedrive API using Vue.js</h1>
<form id="search" v-on:submit.prevent>
@franzos
franzos / pipedrive-get-all-persons.html
Last active October 26, 2017 08:27
Pipedrive API and Vue.js 2: Get all persons
<!--
Pipedrive API and Vue.js 2: Get all persons
https://developers.pipedrive.com/docs/api/v1/#!/Persons/get_persons
-->
<script src="https://unpkg.com/vue"></script>
<div id="demo">
<h1>Get all Persons via Pipedrive API using Vue.js</h1>
<form id="search" v-on:submit.prevent>
@franzos
franzos / firebase-todo-list.html
Last active October 26, 2017 10:13
Firebase, Vue.js 2 and Vuefire: To-Do List
<!--
Firebase, Vue.js 2 and Vuefire: ToDo List
https://developers.pipedrive.com/docs/api/v1/#!/Persons/get_persons
-->
<script src="https://unpkg.com/vue"></script>
<script src="https://gstatic.com/firebasejs/4.0.0/firebase.js"></script>
<script src="https://unpkg.com/vuefire/dist/vuefire.js"></script>
<div id="demo">