Skip to content

Commit 76e6f0d

Browse files
authored
pimcore 6.3 ready (#121)
* pimcore 6.3 ready * fix skeleton branch * apply ecs
1 parent 0db8937 commit 76e6f0d

File tree

4 files changed

+45
-212
lines changed

4 files changed

+45
-212
lines changed

.travis.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ env:
2020
- SYMFONY_VERSION=^4.0
2121
matrix:
2222
include:
23-
- name: "PHPStan Static Analysis (Pimcore 6.2.x, Symfony ^4.0, PHP 7.3)"
23+
- name: "PHPStan Static Analysis (Pimcore 6.3.x, Symfony ^4.0, PHP 7.3)"
2424
sudo: required
2525
php: 7.3
2626
env:
27-
- PIMCORE_SKELETON_BRANCH="tags/v2.2.0"
27+
- PIMCORE_SKELETON_BRANCH="tags/v2.3.0"
2828
- DACHCOM_TEST_SECTION=phpstan
29-
- name: "PHP ECS (Pimcore 6.2.x, Symfony ^4.0, PHP 7.3)"
29+
- name: "PHP ECS (Pimcore 6.3.x, Symfony ^4.0, PHP 7.3)"
3030
sudo: required
3131
php: 7.3
3232
env:
33-
- PIMCORE_SKELETON_BRANCH="tags/v2.2.0"
33+
- PIMCORE_SKELETON_BRANCH="tags/v2.3.0"
3434
- DACHCOM_TEST_SECTION=ecs
3535
- name: "Codeception Tests (Pimcore 6.0.x, Symfony ^4.0, PHP 7.3)"
3636
sudo: required
@@ -42,25 +42,30 @@ matrix:
4242
php: 7.3
4343
env:
4444
- PIMCORE_SKELETON_BRANCH="tags/v2.1.0"
45-
- name: "Codeception Tests (Pimcore 6.2.x, Symfony ^4.0, PHP 7.2)"
45+
- name: "Codeception Tests (Pimcore 6.2.x, Symfony ^4.0, PHP 7.3)"
4646
sudo: required
47-
php: 7.2
47+
php: 7.3
4848
env:
4949
- PIMCORE_SKELETON_BRANCH="tags/v2.2.0"
50-
- name: "Codeception Tests (Pimcore 6.2.x, Symfony ^4.0, PHP 7.3)"
50+
- name: "Codeception Tests (Pimcore 6.3.x, Symfony ^4.0, PHP 7.2)"
51+
sudo: required
52+
php: 7.2
53+
env:
54+
- PIMCORE_SKELETON_BRANCH="tags/v2.3.0"
55+
- name: "Codeception Tests (Pimcore 6.3.x, Symfony ^4.0, PHP 7.3)"
5156
sudo: required
5257
php: 7.3
5358
env:
54-
- PIMCORE_SKELETON_BRANCH="tags/v2.2.0"
55-
- name: "Codeception Tests (Pimcore 6.2.x, Symfony ^3.4, PHP 7.3)"
59+
- PIMCORE_SKELETON_BRANCH="tags/v2.3.0"
60+
- name: "Codeception Tests (Pimcore 6.3.x, Symfony ^3.4, PHP 7.3)"
5661
sudo: required
5762
php: 7.3
5863
env:
5964
- SYMFONY_VERSION=^3.4
60-
- PIMCORE_SKELETON_BRANCH="tags/v2.2.0"
65+
- PIMCORE_SKELETON_BRANCH="tags/v2.3.0"
6166
allow_failures:
6267
- env:
63-
- PIMCORE_SKELETON_BRANCH="tags/v2.2.0"
68+
- PIMCORE_SKELETON_BRANCH="tags/v2.3.0"
6469
- DACHCOM_TEST_SECTION=ecs
6570
fast_finish: true
6671

UPGRADE.md

Lines changed: 7 additions & 195 deletions
Original file line numberDiff line numberDiff line change
@@ -6,205 +6,17 @@
66
After every update you should check the pimcore extension manager.
77
Just click the "update" button or execute the migration command to finish the bundle update.
88

9+
#### Update from Version 3.x to Version 3.1.0
10+
- **[NEW FEATURE]**: Pimcore 6.3.0 ready
11+
- **[BUG FIX]**: [Fix wrong index in bootstrap tabs for active element](https://github.com/dachcom-digital/pimcore-toolbox/issues/119)
12+
13+
***
14+
915
#### Update from Version 2.x to Version 3.0.0
1016
- **[NEW FEATURE]**: Pimcore 6.0.0 ready
1117
- **[BC BREAK]**: All Controllers are registered as services now!
1218
- **[ATTENTION]**: All `href`, `multihref` elements has been replaced by `relation`, `relations`
1319

1420
***
1521

16-
#### Update from Version 2.7.x to Version 2.8.0
17-
- **[ATTENTION]**: This release will be the last minor release which supports Pimcore 5!
18-
- ([Milestone for 2.8.0](https://github.com/dachcom-digital/pimcore-toolbox/milestone/13?closed=1)
19-
20-
#### Update from Version 2.7.0 to Version 2.7.1
21-
- **[NEW FEATURE]**: Google Map API Key now configurable via systemsettings, [read more here](./docs/11_ElementsOverview.md#google-map)
22-
23-
#### Update from Version 2.6.x to Version 2.7.0
24-
- **[ATTENTION]**: Installer has moved to the [MigrationBundle](https://github.com/dachcom-digital/pimcore-toolbox/issues/89). After updating to this version you need to enable this extension again!
25-
- **[NEW FEATURE]**: Parameter for video elements (e.g. youtube api parameters)
26-
- ([Milestone for 2.7.0](https://github.com/dachcom-digital/pimcore-toolbox/milestone/12?closed=1))
27-
28-
#### Update from Version 2.6.4 to Version 2.6.5
29-
- **[NEW FEATURE]**: Allow Column Adjuster Context-based Configuration
30-
- **[NEW FEATURE]**: Pimcore 5.6.0 ready.
31-
32-
#### Update from Version 2.6.3 to Version 2.6.4
33-
- **[NEW FEATURE]**: GoogleMaps-Areabrick now supports Server API Key (systemconfig)
34-
35-
#### Update from Version 2.6.2 to Version 2.6.3
36-
- **[NEW FEATURE]**: Pimcore 5.5.0 ready.
37-
- **[VIEW CHANGES]**: Instead of `/admin/toolbox-ckeditor-style.js` you need to add the `toolbox_get_ckeditor_config_path()` twig helper method.
38-
- Changed View: `views/Toolbox/Snippet/teaser-default.html.twig`
39-
- Changed View: `views/Toolbox/Bootstrap3/Content/view.html.twig`
40-
- Changed View: `views/Toolbox/Bootstrap4/Content/view.html.twig`
41-
- **[NEW FEATURE]**: CK-Editor is Context Ready. You can now use different CK-Editor configurations per context. Checkout the [context docs](docs/15_Context.md) to checkout the updated context resolver.
42-
- ([Milestone for 2.6.3](https://github.com/dachcom-digital/pimcore-toolbox/milestone/11?closed=1))
43-
44-
#### Update from Version 2.6.1 to Version 2.6.2
45-
- implemented [PackageVersionTrait](https://github.com/pimcore/pimcore/blob/master/lib/Extension/Bundle/Traits/PackageVersionTrait.php)
46-
- Fix ColumnCalculator Issuse (https://github.com/dachcom-digital/pimcore-toolbox/pull/75)
47-
- Allow changing video label (https://github.com/dachcom-digital/pimcore-toolbox/pull/76)
48-
49-
#### Update from Version 2.6.0 to Version 2.6.1
50-
- **[NEW FEATURE]**: Pimcore 5.4.0 ready.
51-
- Fix Composer PSR-4 Path
52-
53-
#### Update from Version 2.5.0 to Version 2.6.0
54-
- **[NEW FEATURE]**: Pimcore 5.3.0 ready. Pimcore changed the areablock behaviour and so did we. It's backwards compatible since
55-
we're only loading the styling adoptions in Pimcore >= 5.3.0.
56-
- **[NEW FEATURE]**: Image Link. There is a new config element `image_link`. If you already have added a image link in your existing project
57-
and it's not called `image_link`, you should disable the new config element otherwise there will be two of them:
58-
59-
```yaml
60-
toolbox:
61-
areas:
62-
image:
63-
config_elements:
64-
image_link: ~ # disable this one
65-
```
66-
67-
#### Update from Version 2.4.0 to Version 2.5.0
68-
69-
- **[HOTFIX]**: In some cases pimcore will remove links within the validity check without any response. If you're using object links within the DynamicLink element you should update immediately!
70-
- **[BC BREAK]**: Use the `use_dynamic_links` Flag if you still want to use the dynamicLink element:
71-
72-
```yml
73-
toolbox:
74-
flags:
75-
use_dynamic_links: true
76-
```
77-
Please [read more here](./docs/70_ConfigurationFlags.md#-use_dynamic_links-flag) if you want to migrate from dynamic links to the pimcore default links (highly recommended)
78-
79-
#### Update from Version 2.4.0 to Version 2.4.1
80-
- **[NEW FEATURE]**: Introduce new `iFrame` element, see [docs](docs/11_ElementsOverview.md#iframe)
81-
- **[BUGFIX]**: only load icon if area type is internal
82-
83-
#### Update from Version 2.3.0 to Version 2.4.0
84-
85-
- **[BUGFIX]**: Fix private service request in column adjuster
86-
- **[BUGFIX]**: Don't throw exception if no google maps key has been defined in system settings
87-
- **[IMPROVEMENT]**: improve google maps route link renderer, see [docs](docs/11_ElementsOverview.md#route-link-renderer)
88-
- **[NEW FEATURE]**: Introduce `additionalClassesChained` type, see [docs](docs/11_ElementsOverview.md#additional-classes)
89-
- **Important**: If you have changed any views in `views/Areas/*/view.html.twig` check them against the original ones and adapt the changes!
90-
91-
#### Update from Version 2.2.x to Version 2.3.0
92-
93-
> Please check the symfony deprecation log. There are some deprecations which will be removed in TB 3.0
94-
95-
- **[BUGFIX]**: check auto play option in video element against boolean not integer
96-
- **[IMPROVEMENT]**: Load backend google maps key for google map element if available
97-
- **[IMPROVEMENT]**: Better area availability configuration:
98-
- `disallowed_subareas` is deprecated and will be removed in TB 3.0, use `areas_appearance` instead
99-
- `disallowed_content_snippet_areas` is deprecated and will be removed in TB 3.0, use `snippet_areas_appearance` instead
100-
- **[IMPROVEMENT]**: Calculators need to be a [tagged service](docs/30_ToolboxTheme.md) now.
101-
- The config node `theme.calculators.ToolboxBundle\Calculator\*Calculator` is deprecated and will be removed in TB 3.0. Use `theme.calculators.column_calculator` or `theme.calculators.slide_calculator` instead.
102-
- **[NEW FEATURE]**: [jQuery Plugins](docs/80_Javascript.md) available!
103-
- **[NEW FEATURE]**: [Context Configuration](docs/15_Context.md) is available!
104-
- **[NEW FEATURE]**: [Helper Commands](docs/2_Commands.md) available!
105-
- **[BC BREAK]**: `toolbox-googleMaps.js` has been moved to `bundles/toolbox/js/frontend/legacy`. This file is now deprecated and will be removed in Version 3.0.0!
106-
- **[BC BREAK]**: `toolbox-main.js` has been moved to `bundles/toolbox/js/frontend/legacy`. This file is now deprecated and will be removed in Version 3.0.0!
107-
- **[BC BREAK]**: `toolbox-video.js` has been moved to `bundles/toolbox/js/frontend/legacy`. This file is now deprecated and will be removed in Version 3.0.0!
108-
- **[BC BREAK]**: `vimeo-api.min.js` has been marked as deprecated and will be removed in Version 3.0.0! The toolbox-video extension will include the recent api by itself.
109-
110-
#### Update from Version 2.1.x to Version 2.2.0
111-
**[BC BREAK]**: Use the `strict_column_counter` Flag if you're using offset columns! Read more about it [here](docs/70_ConfigurationFlags.md#strict_column_counter-flag)
112-
113-
- [Column Adjuster](docs/60_ColumnAdjuster.md) added
114-
- Google Maps: Allow deactivation of InfoWindow per location
115-
- In case you're using a custom column calculator: Please check the new additions before upgrading to toolbox 2.2.0:
116-
- The ColumnCalculator now needs the [ConfigManager](https://github.com/dachcom-digital/pimcore-toolbox/blob/master/src/ToolboxBundle/Calculator/Bootstrap4/ColumnCalculator.php#L18)!
117-
- Update `calculateColumns` [Method](https://github.com/dachcom-digital/pimcore-toolbox/blob/master/src/ToolboxBundle/Calculator/Bootstrap4/ColumnCalculator.php#L24)
118-
- Add `getColumnInfoForAdjuster` [Method](https://github.com/dachcom-digital/pimcore-toolbox/blob/master/src/ToolboxBundle/Calculator/Bootstrap4/ColumnCalculator.php#L139)
119-
120-
#### Update from Version 2.x to Version 2.1.0
121-
The Bootstrap4 Layout is now enabled by default. If you still need B3 you need to add some params to your config:
122-
123-
```yaml
124-
# set theme to bootstrap 3 and add all the default wrapper elements.
125-
toolbox:
126-
theme:
127-
layout: 'Bootstrap3'
128-
# set b3 column calculators
129-
calculators:
130-
ToolboxBundle\Calculator\ColumnCalculator: ToolboxBundle\Calculator\Bootstrap3\ColumnCalculator
131-
ToolboxBundle\Calculator\SlideColumnCalculator: ToolboxBundle\Calculator\Bootstrap3\SlideColumnCalculator
132-
wrapper:
133-
image:
134-
- {tag: 'div', class: 'row'}
135-
- {tag: 'div', class: 'col-xs-12'}
136-
columns:
137-
- {tag: 'div', class: 'row'}
138-
gallery:
139-
- {tag: 'div', class: 'row'}
140-
- {tag: 'div', class: 'col-xs-12 col-gallery'}
141-
slideColumns:
142-
- {tag: 'div', class: 'row'}
143-
teaser:
144-
- {tag: 'div', class: 'row'}
145-
- {tag: 'div', class: 'col-xs-12'}
146-
147-
# if you're using the slideColumns: set column classes based on b3 classes.
148-
toolbox:
149-
areas:
150-
slideColumns:
151-
config_parameter:
152-
column_classes:
153-
'2': 'col-xs-12 col-sm-6'
154-
```
155-
156-
***
157-
158-
#### Update from Version 1.x to Version 2.0.0
159-
- rename globallink to dynamiclink:
160-
```sql
161-
UPDATE documents_elements SET type = 'dynamiclink' WHERE type = 'globallink';
162-
```
163-
164-
- Shorten additional classes:
165-
```sql
166-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'accordionAdditionalClasses', 'add_classes');
167-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'containerAdditionalClasses', 'add_classes');
168-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'contentAdditionalClasses', 'add_classes');
169-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'downloadAdditionalClasses', 'add_classes');
170-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'galleryAdditionalClasses', 'add_classes');
171-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'googleMapAdditionalClasses', 'add_classes');
172-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'headlineAdditionalClasses', 'add_classes');
173-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'imageAdditionalClasses', 'add_classes');
174-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'linklistAdditionalClasses', 'add_classes');
175-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'parallaxContainerAdditionalClasses', 'add_classes');
176-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'separatorContainerAdditionalClasses', 'add_classes');
177-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'columnsAdditionalClasses', 'add_classes');
178-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'spacerAdditionalClasses', 'add_classes');
179-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'teaserAdditionalClasses', 'add_classes');
180-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'videoContainerAdditionalClasses', 'add_classes');
181-
```
182-
183-
- Upgrade element config names:
184-
185-
```sql
186-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'addlCls', 'add_classes');
187-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'anchorName', 'anchor_name');
188-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'anchorTitle', 'anchor_title');
189-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'equalHeight', 'equal_height');
190-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'fullWidthContainer', 'full_width_container');
191-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'showPreviewImages', 'show_preview_images');
192-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'showFileInfo', 'show_file_info');
193-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'useLightbox', 'use_light_box');
194-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'useThumbnails', 'use_thumbnails');
195-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'mapZoom', 'map_zoom');
196-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'mapType', 'map_type');
197-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'iwOnInit', 'iw_on_init');
198-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'headlineType', 'headline_type');
199-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'headlineText', 'headline_text');
200-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'showCaption', 'show_caption');
201-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'backgroundImage', 'background_image'); #parallax
202-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'backgroundColor', 'background_color'); #parallax
203-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'imageFront', 'image_front');
204-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'imagesBehind', 'image_behind');
205-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'containerType', 'container_type');
206-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'slidesPerView', 'slides_per_view');
207-
UPDATE documents_elements SET `name` = REPLACE(`name`, 'spacerClass', 'spacer_class');
208-
```
209-
210-
- clear `cache` and `cache_tags` tables.
22+
Toolbox 2.x Upgrade Notes: https://github.com/dachcom-digital/pimcore-toolbox/blob/2.8/UPGRADE.md

src/ToolboxBundle/Model/Document/Tag/ColumnAdjuster.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function getType()
2424
}
2525

2626
/**
27-
* @see Document\Tag\TagInterface::getData
28-
*
2927
* @return mixed
28+
*
29+
* @see Document\Tag\TagInterface::getData
3030
*/
3131
public function getData()
3232
{
@@ -42,9 +42,9 @@ public function frontend()
4242
}
4343

4444
/**
45-
* @see Document\Tag\TagInterface::admin
46-
*
4745
* @return string
46+
*
47+
* @see Document\Tag\TagInterface::admin
4848
*/
4949
public function admin()
5050
{
@@ -53,6 +53,14 @@ public function admin()
5353
return $html;
5454
}
5555

56+
/**
57+
* @return bool
58+
*/
59+
public function isEmpty()
60+
{
61+
return $this->data === false || empty($this->data);
62+
}
63+
5664
/**
5765
* @param mixed $data
5866
*
@@ -70,11 +78,11 @@ public function setDataFromResource($data)
7078
}
7179

7280
/**
73-
* @see Document\Tag\TagInterface::setDataFromEditmode
74-
*
7581
* @param mixed $data
7682
*
7783
* @return $this
84+
*
85+
* @see Document\Tag\TagInterface::setDataFromEditmode
7886
*/
7987
public function setDataFromEditmode($data)
8088
{

src/ToolboxBundle/Model/Document/Tag/GoogleMap.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ public function admin()
123123
return $html;
124124
}
125125

126+
/**
127+
* @return bool
128+
*/
129+
public function isEmpty()
130+
{
131+
return $this->data === false || empty($this->data);
132+
}
133+
126134
/**
127135
* Receives the data from the resource, an convert to the internal data in the object eg. image-id to Asset\Image.
128136
*

0 commit comments

Comments
 (0)