Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom tags migration from eZ Publish Platform 5.4 #48

Draft
wants to merge 1 commit into
base: release/v2.5
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public function registerBundles()
new EzSystems\FlexWorkflowBundle\EzSystemsFlexWorkflowBundle(),
new EzSystems\EzPlatformEnterpriseEditionInstallerBundle\EzPlatformEnterpriseEditionInstallerBundle(),
new EzSystems\EzPlatformWorkflowBundle\EzPlatformWorkflowBundle(),
// Addition
new EzSystems\EzPlatformXmlTextFieldTypeBundle\EzSystemsEzPlatformXmlTextFieldTypeBundle(),
// Application
new AppBundle\AppBundle(),
];
Expand Down
3 changes: 3 additions & 0 deletions app/config/ezplatform.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
imports:
- { resource: fields.yml }

ezpublish:
# HttpCache settings, By default 'local' (Symfony HttpCache Proxy), by setting it to 'http' you can point it to Varnish
# You may also set it to 'fastly' if you want to use the fastly CDN
Expand Down
29 changes: 29 additions & 0 deletions app/config/fields.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ezpublish:
system:
default:
field_templates:
# view for `ezsrrating` from ezstarrating extension
- { template: '@ezdesign/fields/content_fields.html.twig', priority: 1 }
fieldtypes:
ezrichtext:
custom_tags:
# ezpublish_legacy/settings/content.ini / [CustomTagSettings] / AvailableCustomTags
- factbox
# <custom name="factbox" custom:title="[…]">[…]</custom> → <eztemplate name="factbox"><ezcontent>[…]</ezcontent><ezconfig><ezvalue key="title">[…]</ezvalue></ezconfig></eztemplate>
# Already handled custom tags (which are not listed as Inline custom tags by ezxmltext:convert-to-richtext) :
# - quote # <custom name="quote"> → <blockquote>
# - strike # <custom name="strike"> → <emphasis role="strikedthrough">
# - sub # <custom name="sub"> → <subscript>
# - sup # <custom name="sup"> → <superscript>

ezrichtext:
custom_tags:
factbox:
#template: '@ezdesign/fields/richtext/factbox.html.twig'
template: 'AppBundle:themes/standard/fields/richtext:factbox.html.twig'
icon: '/bundles/ezplatformadminui/img/ez-icons.svg#warning'
attributes:
title:
type: string
required: true
default_value: ''
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"ezsystems/ezplatform-standard-design": "~0.2.2",
"ezsystems/ezplatform-user": "~1.0.7",
"ezsystems/ezplatform-workflow": "~1.1.10",
"ezsystems/ezplatform-xmltext-fieldtype": "v1.*",
"ezsystems/ezpublish-kernel": "~7.5.13",
"ezsystems/flex-workflow": "~3.2.6",
"ezsystems/repository-forms": "~2.5.8",
Expand Down Expand Up @@ -127,6 +128,9 @@
]
},
"config": {
"platform": {
"php": "7.3.19"
},
"bin-dir": "bin",
"sort-packages": true,
"preferred-install": {
Expand Down
Loading