contextualcode/ezplatform-content-aware-customtags

eZ Platform Content-Aware Custom Tags

v1.1.0 2021-08-24 11:50 UTC

This package is not auto-updated.

Last update: 2024-03-19 22:57:23 UTC


README

This bundle provides the ability to use different sets of custom tags in Online Editor based on the content location.

It might be useful for huge projects with multiple siteaccesses, where different sets of custom tags are used on different siteacceses.

Installation

  1. Require via composer:

     composer require contextualcode/ezplatform-content-aware-customtags
    
  2. Clear browser caches and enjoy!

Usage

After the bundle is installed, it is possible to configure which custom tags should be enabled for different locations. It is done by using content_aware_custom_tags.settings configuration.

Let's say we want to:

  • Disable ezyoutube and ezfacebook custom tags for all the content placed under location #54
  • Enable only eztwitter custom tag for all the content placed under location #55

In this case we would need to create config/packages/content_aware_custom_tags.yaml configuration file:

content_aware_custom_tags:
    settings:
        - {parentLocationId: 54, disabled: [ezyoutube, ezfacebook]}
        - {parentLocationId: 55, enabled: [eztwitter]}