Skip to content

Instantly share code, notes, and snippets.

View blankse's full-sized avatar
:octocat:

Sebastian Blank blankse

:octocat:
View GitHub Profile
-
type: content_type
mode: create
content_type_group: Content
identifier: article
name: Article
description: ''
name_pattern: '<short_title|title>'
url_name_pattern: ''
is_container: true
<?php
namespace DataFactory\StandardBundle\DependencyInjection\Compiler;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
/**
* Compiler pass adding argument to full text criterion handler
*/
jQuery(function( $ )
{
// Attache click event to search button and show input fields
$('input.ezobject-relation-search-btn').click( _search ).removeClass('hide');
// Attache key press event to catch enter and show input fields
$('input.ezobject-relation-search-text').keypress( function( e ){
if ( e.which == 13 )
{
return _search.call( this, e );
ezpublish:
repositories:
demo_repository:
storage:
engine: legacy
connection: default
search:
engine: legacy
connection: default
<?php /* #?ini charset="utf-8"?
[LanguageSearch]
MultiCore=enabled
LanguagesCoresMap[eng-GB]=eng-GB
LanguagesCoresMap[ger-DE]=ger-DE
SearchMainLanguageOnly=disabled
*/ ?>
@blankse
blankse / folder.xml
Created October 31, 2014 17:00
XML for ezxmlinstaller
<?xml version="1.0" encoding="UTF-8"?>
<eZXMLImporter>
<CreateClass>
<ContentClass isContainer="true" identifier="folder" remoteID="a3d405b81be900468eb153d774f4f0d2" objectNamePattern="&lt;short_name|name&gt;" urlAliasPattern="" classExistAction="extend">
<Names always-available="ger-DE" ger-DE="Folder"/>
<Groups> <Group id="1" name="Content"/> </Groups>
<Attributes>
<Attribute datatype="ezstring" required="true" searchable="true" informationCollector="false" translatable="true" identifier="name" placement="1">
<Names always-available="ger-DE" ger-DE="Name"/>
<DatatypeParameters>