Skip to content

Instantly share code, notes, and snippets.

View joekolade's full-sized avatar

Joe Kolade joekolade

View GitHub Profile
@joekolade
joekolade / interaction.js
Created April 8, 2023 14:21
[Neos interaction JS]
if (typeof document.addEventListener === 'function') {
document.addEventListener('Neos.PageLoaded', function(event) {
// Do stuff
}, false);
}
@joekolade
joekolade / multicol.scss
Created April 8, 2023 14:20
[Neos nodetypes multicol]
// Columns
//
.neos-nodetypes-twocolumn,
.neos-nodetypes-threecolumn {
display: flex;
.column {
padding-left: 15px;
padding-right: 15px;
}
}
@joekolade
joekolade / clear_cache.sh
Created April 8, 2023 14:19
[Neos clear live cache] #neos
# clear cache in production
FLOW_CONTEXT=Production ./flow flow:cache:flush --force && ./flow
@joekolade
joekolade / error.typoscript
Created April 8, 2023 14:19
[Ooops an error occured...]
# TS
config.contentObjectExceptionHandler = 0
@joekolade
joekolade / background.fusion
Created April 8, 2023 14:18
[Page background with image]
# NodeTypes.yaml
'Neos.NodeTypes:Page':
properties:
backgroundimage:
type: 'Neos\Media\Domain\Model\ImageInterface'
ui:
label: 'Hintergrund Bild'
inspector:
group: 'document'
@joekolade
joekolade / constraints.yaml
Created April 8, 2023 14:18
[PageType constraints]
'Neos.NodeTypes:Page':
childNodes:
'main':
constraints:
nodeTypes:
'Neos.NodeTypes:Headline': TRUE
'Neos.NodeTypes:Text': TRUE
'Neos.NodeTypes:Image': TRUE
'Neos.NodeTypes:Html': TRUE
'Neos.NodeTypes:TwoColumn': TRUE
@joekolade
joekolade / page.ts
Created April 8, 2023 14:17
[Page with fluid templates]
page = PAGE
# page.typeNum = 123
page.10 = FLUIDTEMPLATE
page.10 {
templateName = TEXT
templateName.stdWrap {
cObject = TEXT
cObject {
data = levelfield:-2,backend_layout_next_level,slide
@joekolade
joekolade / recursive_delete.sh
Created April 8, 2023 14:16
[Recursive find and delete]
find . \( -name '.DS_Store' -or -name '._*' \) -delete
@joekolade
joekolade / transition.scss
Created April 8, 2023 14:15
[Transition mixin]
// Transitions
//
//
$transition-default-duration: ###0.3s###;
$transition-default-timing: ease-out;
$transition-default-delay: 0s;
@mixin transit($prop: all){
transition: $prop $transition-default-duration $transition-default-timing $transition-default-delay;
}
@joekolade
joekolade / breakpoints.scss
Created April 8, 2023 14:14
[Breakpoints mixins]
/**
Breakpoints
*/
// define breakpoints
// ------------------------------
$breakpoints: (
micro: 320px,
xs: 502px,
sm: 768px,