LoginSignup
0
0

More than 1 year has passed since last update.

Ibexa DXP の便利な各種バンドルの紹介

Last updated at Posted at 2022-04-14

Netgen Tags Bundle

https://github.com/netgen/TagsBundle/
Ibexa Open Source では Taxonomy が利用できないため、Netgen 社によるサードパーティーのバンドルをインストールすることで対応できる。

インストール

composer require netgen/tagsbundle
config/routes/netgen_tags.yaml
netgen_tags:
    resource: "@NetgenTagsBundle/Resources/config/routing.yaml"
mysql -u<user> -p <db_name> < vendor/netgen/tagsbundle/bundle/Resources/sql/mysql/schema.sql

Codein IbexaColorPicker

インストール

composer require codein/ibexa-color-picker

Ibexa RichText Validation Errors

https://gitlab.com/contextualcode/ibexa-richtext-validation-errors
このバンドルは、 RichText の検証エラーに関する詳細情報を提供します。
eZ Platform AlloyEditor Source (contextualcode/ezplatform-alloyeditor-source) バンドルを併せて利用することが推奨されます。


インストール

composer require contextualcode/ibexa-richtext-validation-errors

eZ Platform AlloyEditor Source

インストール

composer require contextualcode/ezplatform-alloyeditor-source

Codein SEO Toolkit

インストール

composer require codein/ibexa-seo-toolkit --no-scripts
config/bundles.php
return [
    //...
    Codein\IbexaSeoToolkit\IbexaSeoToolkitBundle::class => ['all' => true],
];
config/routes.yaml
api_codein_ibexa_seo:
    resource: .
    type: api_codein_ibexa_seo
config/packages/codein_ibexa_seo_toolkit.yaml
codein_ibexa_seo_toolkit:
    system:
        default:
            metas:
                default_metas:
composer composer run-script post-install-cmd
php bin/console doctrine:schema:update --force
php bin/console bazinga:js-translation:dump public/assets --merge-domains
yarn encore dev

Novactive eZ SEO Bundle

インストール

composer require novactive/ezseobundle
config/bundles.php
return [
    // ...
    Novactive\Bundle\eZSEOBundle\NovaeZSEOBundle::class => [ 'all'=> true ],
];
config/routes.yaml
_novaezseo_routes:
    resource: '@NovaeZSEOBundle/Resources/config/routing/main.yaml'
php bin/console ibexa:graphql:generate-schema

Elbformat Field Helper Bundle for ibexa DXP

インストール

composer require elbformat/field-helper-bundle
config/bundles.php
return [
    // ...
    Elbformat\FieldHelperBundle\ElbformatFieldHelperBundle::class => ['all' => true],
];

使用方法

public function getFields(RegistryInterface $fieldHelperRegistry, Content $content) {
    $myText = $fieldHelperRegistry->getTextFieldHelper()->getString($content, 'text_field');
    $linkObject = $fieldHelperRegistry->getLinkFieldHelper()->getLink($content, 'my_url');
    $linkUrl = $linkObj->getUrl();
    $linkText = $linkObj->getText();
}

Novactive eZ Slack Bundle

Ibexa DXP と Slack の統合を提供するバンドルです。
Ibexa の管理画面の操作を Slack に通知したり、逆に Slack から Ibexa のコンテンツを操作したりすることができるようになります。
https://github.com/Novactive/NovaeZSlackBundle

説明動画

インストール

composer require novactive/ezslackbundle
config/bundles.php
return [
    // ...
    JMS\SerializerBundle\JMSSerializerBundle::class => [ 'all'=> true ],
    KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => [ 'all'=> true ],
    Novactive\Bundle\eZSlackBundle\NovaeZSlackBundle::class => [ 'all'=> true ],
];
config/packages/routing.yaml
_novaezslack_routes:
    resource: "@NovaeZSlackBundle/Controller"
    type:     annotation
    prefix:   /_novaezslack

_novaezslack_slack_oauth_check:
    path: /_novaezslack/auth/check
config/packages/nova_ezslack.yml
nova_ezslack:
    system:
        default:
            slack_client_id: "SLACK_APP_CLIENT ID"
            slack_client_secret: "SLACK_APP_CLIENT_SECRET"
            slack_verification_token: "SLACK_APP_VERIFICATION_TOKEN"
            site_name: "novactive.us"
            favicon: "https://assets.novactive.us/images/icos/favicon.ico"
            asset_prefix: "https://assets.novactive.us"
            notifications:
                channels:
                    - "https://hooks.slack.com/services/XXXX"

knpu_oauth2_client:
    clients:
        slack:
            type: slack
            redirect_route: _novaezslack_slack_oauth_check
            client_id: "#" # will be overridden by ConfigResolver - this value does not matter
            client_secret: "#" # will be overridden by ConfigResolver - this value does not matter
config/packages/security.yml
        ibexa_front:
            guard:
                authenticators:
                    - Novactive\Bundle\eZSlackBundle\Security\SlackAuthenticator
composer install

CJW's Config-Processor Bundle

インストール

composer require cjw-network/cjw-config-processor
config/bundles.php
return [
    // ...
    // <vendor>\<bundle-name>\<bundle-long-name>::class => ['all' => true],
    CJW\CJWConfigProcessorBundle\CJWConfigProcessorBundle::class => ['all' => true],
];
config/routes/cjw_config_processing.yaml
cjw_config_processor_bundle:
    resource: "@CJWConfigProcessorBundle/Resources/config/routing.yaml"
config/packages/cjw_config_processor.yaml
# example settings
cjw_config_processor:
  custom_site_access_parameters:
    allow: false
    scan_parameters: false
    parameters:
      - "user.defined.parameters"

  favourite_parameters:
    allow: true
    scan_parameters: true
    parameters:
      - "user.defined.parameters"

  env_variables:
    allow: true
php bin/console assets:install

Ibexa DXP Maintenance Mode Bundle

インストール

composer require kmadejski/ezplatform-maintenance-mode
config/bundles.php
    EzSystems\EzPlatformMaintenanceModeBundle\EzSystemsEzPlatformMaintenanceModeBundle::class => ['all' => true]
php bin/console cache:clear --env=prod

設定

ezplatform.yml
ezplatform:
    system:
        default:
            maintenance_mode:
                enabled: true
ezplatformgs:
    system:
        default:
            maintenance_mode:
                enabled: true
                allowed_ips: ['::1', '10.0.0.1', '192.168.0.0/16']
                response_code: 404
                template: '@Acme/custom_maintenance.html.twig'

IbexaHoneypot

インストール

composer require inforca/ibexa-honeypot-bundle
config/bundles.php
<?php
return [
    // ...
    Inforca\IbexaHoneypotBundle\IbexaHoneypotBundle::class => ['all' => true],
];

使用方法

Use Ibexa Form Builder to put a Honeypot field in your form.

The default label is Honeypot witch is automatically convert to Email.
You can change label Name.

You should customize the display of the field to hide it.

Netgen Ibexa Forms Bundle

インストール

ルートフォルダから以下を実行し、 Netgen Ibexa Forms Bundle をインストールします。

composer require netgen/ibexa-forms-bundle

Ibexa Platform のキャッシュを次のコマンドでクリアします。

php bin/console cache:clear

Netgen Layouts & Ibexa Platform integration

インストール

composer require netgen/layouts-ibexa

Nova Ibexa (and eZ Platform) Bundles

インストール

git clone
make installibexa
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0