Skip to content

Instantly share code, notes, and snippets.

YUI.add('app-navigationhubviewplugin', function (Y) {
"use strict";
Y.namespace('MyApp');
Y.MyApp.NavigationHubViewPlugin = Y.Base.create('appNavigationHubViewPlugin', Y.Plugin.Base, [], {
initializer: function (config) {
var navigationhubview = this.get('host');
var zones = navigationhubview.get('zones');
zones.exampletab = "Example Tab";
-
type: content
mode: create
content_type: folder
main_location: 2
priority: 0
attributes:
- name: Sites
references:
-
-
type: content
mode: create
content_type: folder
main_location: 2
attributes:
- name: Sites
references:
-
identifier: sites_folder_locationid
ezpublish:
siteaccess:
list:
- default_eng_gb
- default_fre_ca
groups:
site_group:
- default_eng_gb
- default_fre_ca
default_site_group:
YUI.add('exampleplatformuiapp-discoverybarviewplugin', function (Y) {
"use strict";
Y.namespace('examplePlatformUIApp');
Y.examplePlatformUIApp.DiscoveryBarViewPlugin = Y.Base.create('examplePlatformUIAppDiscoveryBarViewPlugin', Y.Plugin.Base, [], {
initializer: function (config) {
var discoveryBarView = this.get('host');
// var user = discoveryBarView.get('app').get('user');
// if (user.get('id') !== 14) {
<?php
namespace ExampleBundle\Command;
use eZ\Publish\API\Repository\Values\Content\Query;
use eZ\Publish\Core\Repository\Values\User\UserReference;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
<?php
/**
* Visits the EzTag facet builder.
*/
class EzTag extends FacetBuilderVisitor implements FacetFieldVisitor
{
/**
* {@inheritdoc}.
*/
{{ ez_render_field( global_layout_object, 'page' ) }}

Keybase proof

I hereby claim:

  • I am wizhippo on github.
  • I am wizhippo (https://keybase.io/wizhippo) on keybase.
  • I have a public key whose fingerprint is 8A32 C823 070E 1EB2 E749 8A9C A6D6 1D9B 40FB 67BB

To claim this, I am signing this object:

@wizhippo
wizhippo / Field.php
Last active September 15, 2017 16:59
Field Facet support
<?php
/**
* This file is part of the eZ Platform Solr Search Engine package.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*
* @version //autogentag//
*/