Skip to content

Instantly share code, notes, and snippets.

@aschiwi
aschiwi / gist:5856988
Created June 25, 2013 08:50
Contents of your node
<div id="accordion">
<h3><a href="#titel1">Deine Überschrift</a></h3>
<div>Dein aufgeklappter Text</div>
<h3><a href="#titel2">Deine zweite Überschrift</a></h3>
<div>Dein aufgeklappter Text</div>
</div>
@aschiwi
aschiwi / gist:5856993
Created June 25, 2013 08:51
this goes in your theme's template.php
<?php
/**
* Override variables used in page.tpl.php.
*/
function YOURTHEMENAME_preprocess_page(&$vars) {
// Adds jquery accordion library so we can use it in our site.
drupal_add_library('system', 'ui.accordion');
}
@aschiwi
aschiwi / install.sh
Last active November 7, 2017 17:32
Example install.sh
################################################################################
# Shell and drush commands to set up (or some part of it) the new site.
#
# Go to sites/all/scripts (e.g. cd sites/all/scripts) and type "sh install.sh"
# in your console/shell/Terminal.
#
# The commands are built to run once, e.g. to set some symlinks, but shall be
# designed to not break other commands on the second run.
#
################################################################################