Skip to content

Instantly share code, notes, and snippets.

View brookinsconsulting's full-sized avatar
😀
Creating NeXT Generation eZ Platform Software

Brookins Consulting brookinsconsulting

😀
Creating NeXT Generation eZ Platform Software
View GitHub Profile
@brookinsconsulting
brookinsconsulting / README
Created November 13, 2011 01:13
Example 'member_of_role' template operator autoload configuration file and OWSimpleOperator based 'BCMemberOfRoleByUserIDOperator' class and method 'member_of_role' (both required). Provided class method 'member_of_role' can be called in PHP.
Name: BC Member Of Role (extension)
A OWSimpleOperator based template operator extension for eZ Publish ( 4.x -> 4.6 ( Community Build 2011.10 ) )
About this Gist
This Gist based solution graduated on 2011/11/12 to a full fledged, ready to use out of the box, eZ Publish based extension.
The extension based solution is ready to use with eZ Publish right out of the box with no additional configuration required.
@brookinsconsulting
brookinsconsulting / README
Created November 23, 2011 04:28
Example customized all2egooglesitemaps based eZ Publish cronjob part, 'generate.php'. Created in reponce to a specific feature request shared on share.ez.no forums, http://share.ez.no/forums/developer/site-map-xml-with-language-listing-in-main-site
README
Name: generate.php customized cronjob part which generates sitemap xml file based on all content of an eZ Publish site
A all2egooglesitemaps based cronjob part extension for eZ Publish ( 4.x -> 4.6 )
About this Gist
This Gist based solution graduated on 2011/11/22 from it's original pastbin mirror to a full fledged, well documented, ready to use out of the box, eZ Publish based cronjob part.
@brookinsconsulting
brookinsconsulting / block.ini.append.php
Created November 23, 2011 11:50
Example block configuration which resets the [General] AllowedTypes[] settings array. Response to support request related to https://gist.github.com/1388242
<?php /* #?ini charset="utf-8"?
[General]
AllowedTypes[]
AllowedTypes[]=firstblockavailable
AllowedTypes[]=Nyheter
[Nyheter]
Name=Nyheter
ManualAddingOfItems=disabled
@brookinsconsulting
brookinsconsulting / README
Created November 23, 2011 21:38
README for upcoming eZ Publish extension to create customized audio files on the fly. http://projects.ez.no/vxaudiosample
This extension will create automatically (using the 'content,after,publish' trigger) a audio sample from object related mp3 audio file.
With this workflow event it's possible to setup the playtime, the cutstart and the fadein-/fadeouttime in seconds to get a automatically created audio sample.
For optimal use the server needs ffmpeg and sox installed, but also worked without it too (simple mp3 cutting in php without fading).
I still need some time to change the hard coded paths and to write a doc/README. If u need info you are welcome in IRC #ezpublish on freenode server.
@brookinsconsulting
brookinsconsulting / TestCaseMissingTranslationContent
Created November 26, 2011 12:08
2011.11.26 - Translation extension settings troubleshooting
Error Message:
Debug: ezpI18n::translateText Nov 26 2011 11:45:09 Missing translation for message in context: 'extension/bcloremipsum/create'. The untranslated message is: 'Create nodes in content tree for eZ Publish'
Related Settings:
Extension translation settings:
File: extension/bcloremipsum/settings/site.ini.append.php
[RegionalSettings]
@brookinsconsulting
brookinsconsulting / README
Created December 14, 2011 19:16
'bcsubtreecopyretainsections.php' is a improved / modified copy of 'ezsubtreecopy.php' which provides a new feature the default script does not provide, it allows you to retains existing content object section assignments (tested) for any version of eZ Pu
Name: BC Subtree Copy Retain Sections (extension script)
About this Gist
This Gist based solution graduated on 2011/12/14 to a full fledged, ready to use out of the box, eZ Publish based extension.
The extension based solution is ready to use with eZ Publish right out of the box with no additional configuration required.
Distribution
@brookinsconsulting
brookinsconsulting / README.tmp.txt
Created January 14, 2012 08:15
This is a copy of a very old copy of the certify.php command line script created by eZ Systems. You can use this script to test your extension for compliance to eZ Publish (Enterprise) extension development guidelines. Also tests for extension errors ...
README.txt
Solution Name: eZP Certify Extension
Extension Identifier: ezpcertifyextension
Script Name: ezpcertifyextensionbinphpezpcertifyextension.php
About
eZP Certify Extension is an eZ Publish extension script for eZ Publish
@brookinsconsulting
brookinsconsulting / extensionbclayoutpatch4.6index.php.patch.diff
Created January 16, 2012 00:02
This is the patch file (diff) which adds view parameter support to ezmodule rerun calls including layout/set module view. This solution is also provided as a kernel override extension class. https://gist.github.com/1651245
1072a1073,1087
> // START EDIT BC: Add view parameter support
> $viewParameters = array();
> $uriUserParameters = $uri->userParameters();
>
> foreach( $uriUserParameters as $key => $param )
> {
> if( $param != '' )
> {
> $viewParameters = array_merge( $viewParameters, array( $key => $param ) );
@brookinsconsulting
brookinsconsulting / settingsoverridecontentstructuremenu.ini.append.php
Created January 17, 2012 01:55
Example settings/override/contentstructuremenu.ini.append.php file which enables an additional content class
<?php /* #?ini charset="utf-8"?
[TreeMenu]
ShowClasses[]=blog
*/ ?>
@brookinsconsulting
brookinsconsulting / bcrolehaspolicykernelclassesezrole.php
Created January 21, 2012 04:13
This is a copy of the kernel/classes/ezrole.php PHP class from eZ Publish GitHub master 8a25d8730ec06cb4cbcdb9d47f13dca8b3fe9aab modified to provide hasPolicy method by default.
Name: BC Role hasPolicy Kernel Override (extension kernel override)
About this Gist
This Gist based solution graduated on 2012/01/22 to a full fledged, ready to use out of the box, eZ Publish based extension.
The extension based solution is ready to use with eZ Publish right out of the box with no additional configuration required.
Distribution