Skip to content

Instantly share code, notes, and snippets.

Install 5.4
###########
### preperations
in /var/www/ps/malaga/malagaezp54
https://github.com/vidarl/ezp-toolkit#install-ez-publish-platform-5x--54-
Install 2.5
###########
@larseirik
larseirik / request.txt
Created September 24, 2018 08:58 — forked from bdunogier/request.txt
eZ Platform GraphQL query with html rendering of a landing page field
{
# "Places & tastes" landing page on ezplatform-ee-demo
content(id: 236) {
fields {
value {
html
}
}
}
}

Keybase proof

I hereby claim:

  • I am larseirik on github.
  • I am larseirik (https://keybase.io/larseirik) on keybase.
  • I have a public key ASCxn0VYrQAGtrx4oGfZhj-hm5a8Wq0z8e3-JQkU564g9wo

To claim this, I am signing this object:

@larseirik
larseirik / ezrest_curl_httpie.md
Created November 27, 2017 07:51 — forked from arfaram/ezrest_curl_httpie.md
Command line using curl and http with eZPlatform Rest API v2

root Location information

curl -u "admin:publish" -H "Accept: application/vnd.ez.api.Root+xml" http://cologne.tripandtravel.dev/api/ezp/v2/

curl -u admin -H "Accept: application/vnd.ez.api.Root+json" http://cologne.tripandtravel.dev/api/ezp/v2/
http -a "admin:publish" --json http://cologne.tripandtravel.dev/api/ezp/v2/
@larseirik
larseirik / docker-cleanup-resources.md
Created August 16, 2017 08:25 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@larseirik
larseirik / createcontent.sh
Created September 21, 2016 08:23 — forked from bdunogier/createcontent.sh
A simple bash script that creates content over the eZ Publish 5 REST API v2 (http://github.com/ezsystems/ezpublish-community)
# Create & publish an ezdemo article using the eZ Publish 5 REST API v2
# Notes:
# - this script requires http ie, which can be found at https://github.com/jkbr/httpie
# - it temporarily depends on a few temporary fixes, available in my fork: https://github.com/bdunogier/ezp-next/tree/tmp-rest-fixes
# - it is NOT well written, and I suck at shell scripting. Feel free to submit improvements to the GIST ;)
#
# Author: Bertrand Dunogier <http://share.ez.no/community/profile>, twitter @bdunogier, http://gplus.to/BertrandDunogier
# Usage: run it
REST_URI="http://vm.ezpublish5/api/ezp/v2"
@larseirik
larseirik / CrossDomainRouter.php
Created April 15, 2016 08:40 — forked from dfritschy/CrossDomainRouter.php
CrossDomainRouter for eZ PlatformIn a multi-site setup, there are usually different domains mapped to different branches in the content tree. In such a use case you will frequently find the need to share content across different siteaccesses.This is no problem with multiple locations, but when generating an URL Alias to a (main) location in anot…
<?php
namespace Webmanufaktur\MySite\Routing;
use eZ\Publish\API\Repository\Values\Content\Location;
use eZ\Publish\Core\MVC\ConfigResolverInterface;
use eZ\Publish\Core\MVC\Symfony\Routing\Generator\UrlAliasGenerator;
use eZ\Publish\Core\SignalSlot\Repository;
use Symfony\Cmf\Component\Routing\ChainedRouterInterface;
use Symfony\Component\HttpFoundation\Request;
@larseirik
larseirik / gist:9f652be31dd45d5c9216
Created October 22, 2015 11:18
Exception - colors aco-licensed
[ Oct 22 2015 13:08:15 ] [87.238.34.135] Error in getContrastingColor:
exception 'InvalidArgumentException' with message 'Invalid color value' in /www/deploy/extensions/aco_licensed_products/classes/Color.php:12
Stack trace:
#0 /www/deploy/extensions/aco_licensed_products/classes/AcoOperators.php(130): Color::fromHex('')
#1 /www/aschehoug/ez54/ezpublish_legacy/lib/eztemplate/classes/eztemplate.php(1349): AcoOperators->modify(Object(eZTemplate), 'getContrastingC...', Array, '', '', '', Array, false)
#2 /www/aschehoug/ez54/ezpublish_legacy/var/ezflow_site/cache/template/compiled/vgs_page_header-ec37ed0a56543d5b399fa52526f477d9.php(2188): eZTemplate->processOperator('getContrastingC
...', Array, '', '', Array, false, false)
#3 /www/aschehoug/ez54/ezpublish_legacy/var/ezflow_site/cache/template/compiled/gripteksten_vg2_l3-9cecb54b6d3047149abbbb328d7d162d.php(174): include('/www/aschehoug/...')
#4 /www/aschehoug/ez54/ezpublish_legacy/lib/eztemplate/classes/eztemplatecompiler.php(448): include('/www/aschehoug/...')
doctrine/annotations v1.2.6 Docblock Annotations Parser
doctrine/cache v1.4.1 Caching library offering an object-oriented API for many cache backends
doctrine/collections v1.3.0 Collections Abstraction library
doctrine/common v2.5.0 Common Library for Doctrine projects
doctrine/dbal v2.5.1 Database Abstraction Layer
doctrine/doctrine-bundle v1.5.1 Symfony DoctrineBundle
doctrine/doctrine-cache-bundle v1.0.1 Symfony2 Bundle for Doctrine Cache
doctrine/inflector v1.0.1 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/orm
[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]
You cannot create a service ("request") of an inactive scope ("request").
Exception trace:
() at /var/www/ezpublish/cache/dev/ezpublishDevDebugProjectContainer.php:17467
ezpublishDevDebugProjectContainer->getRequestService() at /var/www/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:327
Symfony\Component\DependencyInjection\Container->get() at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php:152
eZ\Publish\Core\MVC\Legacy\Kernel\Loader->eZ\Publish\Core\MVC\Legacy\Kernel\{closure}() at /var/www/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel/Loader.php:114
eZ\Publish\Core\MVC\Legacy\Kernel\Loader->eZ\Publish\Core\MVC\Legacy\Kernel\{closure}() at /var/www/vendor/ezsystems/ezpublish-kernel/eZ