Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Visits the EzTag facet builder.
*/
class EzTag extends FacetBuilderVisitor implements FacetFieldVisitor
{
/**
* {@inheritdoc}.
*/
<?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;
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) {
ezpublish:
siteaccess:
list:
- default_eng_gb
- default_fre_ca
groups:
site_group:
- default_eng_gb
- default_fre_ca
default_site_group:
-
type: content
mode: create
content_type: folder
main_location: 2
attributes:
- name: Sites
references:
-
identifier: sites_folder_locationid
-
type: content
mode: create
content_type: folder
main_location: 2
priority: 0
attributes:
- name: Sites
references:
-
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";
YUI.add('app-navigationhubviewplugin', function (Y) {
"use strict";
Y.namespace('MyApp');
Y.MyApp.NavigationHubViewPlugin = Y.Base.create('appNavigationHubViewPlugin', Y.Plugin.Base, [], {
initializer: function () {
Y.log("newzone");
},
}, {
<?php
namespace ExampleBundle\Controller;
use eZ\Bundle\EzPublishLegacyBundle\Controller;
use eZ\Publish\API\Repository\Values\Content\Query;
use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
use eZ\Publish\API\Repository\Values\Content\Query\SortClause;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Request;
YUI.add('wizhippo-editcontentviewplugin', function (Y) {
"use strict";
Y.namespace('Wizhippo.Plugin');
Y.Wizhippo.Plugin.WizhippoContentEditView = Y.Base.create('wizhippoContentEditView', Y.Plugin.Base, [], {
initializer: function () {
var view = this.get('host');
var actionBar = view.get('actionBar');
var actionsList = actionBar.get('actionsList');