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 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 / 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 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 / 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 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 / 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.