Skip to content

Instantly share code, notes, and snippets.

View hlubek's full-sized avatar

Christopher Hlubek hlubek

View GitHub Profile
@hlubek
hlubek / gist:9123887
Created February 20, 2014 21:45
TypoScript content cache beard.json
{
"defaults": {
"gerrit_api_endpoint": "https://review.typo3.org/",
"gerrit_git": "git.typo3.org"
},
"changes": [
{
"name": "[FEATURE] Allow conversion from objects to simple types",
"type": "gerrit",
"path": "Packages/Framework/TYPO3.Flow",
@hlubek
hlubek / Settings.yaml
Last active August 29, 2015 13:57 — forked from aertmann/Settings.yaml
TYPO3:
Neos:
contentDimensions:
dimensions:
'locales':
defaultPreset: 'all'
label: 'Locale'
icon: 'icon-language'
presets:
'all':
@hlubek
hlubek / MultiColumn.ts2
Last active August 29, 2015 13:57
MultiColumn Bootstrap
#
# Adapt MultiColumn rendering to Bootstrap
#
prototype(TYPO3.Neos.NodeTypes:MultiColumn) {
attributes.class = ${'row-fluid columns-' + q(node).property('layout')}
columns.iterationName = 'iterator'
}
prototype(TYPO3.Neos.NodeTypes:MultiColumn) {
@override {
columnLayout = ${q(node).property('layout')}
@hlubek
hlubek / Root.ts2
Created April 5, 2014 19:15
Overriding the root default matcher to render document types with a prototype of the same name.
# Override the default root matcher to render a document node with a prototype of the same name
root.default {
type = ${q(node).property('_nodeType')}
renderPath >
}
#
# A blog Post document node renderer
#

Keybase proof

I hereby claim:

  • I am hlubek on github.
  • I am hlubek (https://keybase.io/hlubek) on keybase.
  • I have a public key whose fingerprint is 07C3 2231 EE93 14EB 9BAF 8562 968C 0CAB A521 36D6

To claim this, I am signing this object:

@hlubek
hlubek / gist:c552c45e0bf1b83e1bd1
Created September 1, 2014 11:41
TYPO3 Neos: Add a JavaScript include from another package
// Extend the Page prototype
prototype(TYPO3.Neos.NodeTypes:Page) {
// body or head depending on the position
body.javascripts {
prism = TYPO3.TypoScript:Tag {
tagName = 'script'
attributes {
src = TYPO3.TypoScript:ResourceUri {
path = 'resource://Networkteam.LearnNeos/Public/Scripts/Vendor/prism.js'
}
@hlubek
hlubek / gist:d16912cfb68fed8eb30a
Created September 10, 2014 13:35
Mac Ports Install PostgreSQL
sudo mkdir -p /opt/local/var/db/postgresql92/defaultdb
sudo chown postgres:postgres /opt/local/var/db/postgresql92/defaultdb
sudo su postgres -c '/opt/local/lib/postgresql92/bin/initdb -D /opt/local/var/db/postgresql92/defaultdb'
# Follow https://coderwall.com/p/xezzaa for user creation and setup on Mac OS X
sudo port select postgresql postgresql92
@hlubek
hlubek / joined.sql
Last active August 29, 2015 14:11
Inline querying reduced nodes in TYPO3CR
SELECT
t0_.persistence_object_identifier AS persistence_object_identifier0, t0_.version AS version1, t0_.pathhash AS pathhash2, t0_.path AS path3, t0_.parentpathhash AS parentpathhash4, t0_.parentpath AS parentpath5, t0_.identifier AS identifier6, t0_.sortingindex AS sortingindex7, t0_.removed AS removed8, t0_.dimensionshash AS dimensionshash9, t0_.hiddenbeforedatetime AS hiddenbeforedatetime10, t0_.hiddenafterdatetime AS hiddenafterdatetime11, t0_.dimensionvalues AS dimensionvalues12, t0_.properties AS properties13, t0_.nodetype AS nodetype14, t0_.hidden AS hidden15, t0_.hiddeninindex AS hiddeninindex16, t0_.accessroles AS accessroles17, t0_.workspace AS workspace18, t0_.contentobjectproxy AS contentobjectproxy19, t0_.movedto AS movedto20
FROM
typo3_typo3cr_domain_model_nodedata t0_
INNER JOIN typo3_typo3cr_domain_model_nodedimension t1_ ON t0_.persistence_object_identifier = t1_.nodedata AND (t1_.name = 'language')
INNER JOIN (
SELECT
t2_.identifier, t2_.pathhash, MIN(LOCATE(CONCAT(t2_.workspace, '
@hlubek
hlubek / Root.ts2
Last active August 29, 2015 14:11
Content dimension presets for translation in Neos 1.2
# Show only "pure" languages in frontend language menu
languageMenu = TYPO3.Neos:DimensionMenu {
dimension = 'language'
presets = ${['en', 'de']}
templatePath = 'resource://TYPO3.NeosDemoTypo3Org/Private/Templates/TypoScriptObjects/LanguageMenu.html'
}
@hlubek
hlubek / List.Something.html
Created December 19, 2014 08:51
Reusing Fluid templates with sections in Neos
<div>
<h1>List of something</h1>
...
<ul>
<!-- This will not be rendered by default -->
<f:section name="item">
<li>
{itemNode.properties.title}
</li>
</f:section>