Skip to content

Instantly share code, notes, and snippets.

View serpensalbus's full-sized avatar

Lars Fischer serpensalbus

View GitHub Profile
@serpensalbus
serpensalbus / jackrabbit-bundle-mysql-search-author.xml
Created September 15, 2016 14:33
Jackrabbit MySQL configuration for a Magnolia author instance using a JNDI connection
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN" "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<Repository>
<DataSources>
<DataSource name="magnolia">
<param name="driver" value="javax.naming.InitialContext"/>
<param name="url" value="java:comp/env/jdbc/MagnoliaAuthor"/>
<param name="databaseType" value="mysql"/>
</DataSource>
</DataSources>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>info.magnolia.project</groupId>
<artifactId>magnolia-cargo-demo</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>magnolia-cargo-demo-webapp</artifactId>
@serpensalbus
serpensalbus / config-magnolia.js
Created July 30, 2016 12:32
Custom Magnolia RIchText field CKEditor configuration file
CKEDITOR.plugins.addExternal("codemirror", CKEDITOR.vaadinDirUrl + "js/codemirror/");
CKEDITOR.editorConfig = function( config ) {
// MIRROR info.magnolia.ui.form.field.definition.RichTextFieldDefinition
definition = {
alignment: false,
images: true,
lists: true,
source: true,
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master
<!-- Die Vorlage stammt von der Seite http://labs.finn.no/blog/finn-anbefaler-ie6-brukere-a-oppgradere-sin-nettleser >
<!--[if lte IE 6]>
<span class="ie6box" style="direction: ltr; text-align: left;">
<style type="text/css">
#ie6msg {border:3px solid #090; margin: 65px 250px 10px 250px; background:#cfc; color:#000;}
#ie6msg h4{margin:8px; padding:0; font-weight: bold}
#ie6msg p{margin:8px; padding:0;}
#ie6msg p a.getie7{font-weight:bold; color:#006;}
#ie6msg p a.ie6expl{font-weight:normal; color:#006;}