Skip to content

Commit 73dbbd0

Browse files
committed
Version 1.6.1
2 parents 482de50 + 1cfc86e commit 73dbbd0

6 files changed

Lines changed: 156 additions & 126 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# (MODX)EvolutionCMS.plugins.ManagerManager.mm_ddSelectDocuments changelog
22

33

4+
## Version 1.6.1 (2025-03-05)
5+
6+
* \* Fixed error with empty list when `$params->depth` == `1`.
7+
8+
49
## Version 1.6 (2022-04-14)
10+
511
* \+ Parameters → `filter`: Supports the not-equal-to operator.
612
* \* Refactoring:
713
* \* `\DDTools\ObjectTools::extend` is used instead of `array_merge`.
@@ -14,10 +20,12 @@
1420

1521

1622
## Version 1.5 (2016-12-20)
23+
1724
* \+ Parameters → `$params->parentIds[$i]`: Can be equal to `'current'` for using ID of current document.
1825

1926

2027
## Version 1.4 (2016-11-04)
28+
2129
* \* Attention! PHP >= 5.4 is required.
2230
* \* Attention! (MODX)EvolutionCMS.plugins.ManagerManager >= 0.7 is required.
2331
* \* The widget now uses named parameters (with backward compatibility).
@@ -26,20 +34,24 @@
2634

2735

2836
## Version 1.3 (2016-06-06)
37+
2938
* \* The `$max` parameter became less fragile (closes #4).
3039
* \* The `$parentIds` parameter can be equal `0` and `0` by default (closes #1).
3140
* \+ The `$allowDoubling` parameter which allows to select duplicates values were added (closes #5).
3241

3342

3443
## Version 1.2.2 (2014-02-14)
44+
3545
* \* The jQuery.ddMultipleInput plugin has been updated to 1.2.1 (minor style changes).
3646

3747

3848
## Version 1.2.1 (2014-01-09)
49+
3950
* \* Small changes for compatibility with PHP < 5.3.
4051

4152

4253
## Version 1.2 (2013-12-11)
54+
4355
* \* Attention! (MODX)EvolutionCMS.plugins.ManagerManager >= 0.6 is required.
4456
* \+ The ability to use output templates for the document selection list elements (see the parameter `$labelMask`) has been added.
4557
* \+ Suggested results can currenly be filtered by TV's values (see the parameter `$filter`).
@@ -53,12 +65,14 @@
5365

5466

5567
## Version 1.1b (2013-08-09)
68+
5669
* \+ The capability of selecting child documents from several parents has been added (`parentIds` is now a comma separated string).
5770

5871

5972
## Version 1.0b (2013-05-30)
73+
6074
* \+ The first release.
6175

6276

63-
<link rel="stylesheet" type="text/css" href="https://DivanDesign.ru/assets/files/ddMarkdown.css" />
77+
<link rel="stylesheet" type="text/css" href="https://raw.githack.com/DivanDesign/CSS.ddMarkdown/master/style.min.css" />
6478
<style>ul{list-style:none;}</style>

CHANGELOG_ru.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
# (MODX)EvolutionCMS.snippets.ddStartSnippet changelog
1+
# (MODX)EvolutionCMS.plugins.ManagerManager.mm_ddSelectDocuments changelog
2+
3+
4+
## Версия 1.6.1 (2025-03-05)
5+
6+
* \* Исправлена ошибка с пустым списком при `$params->depth` == `1`.
27

38

49
## Версия 1.6 (2022-04-14)
10+
511
* \+ Параметры → `filter`: Поддерживает оператор неравенства.
612
* \* Рефакторинг:
713
* \* `\DDTools\ObjectTools::extend` используется вместо `array_merge`.
@@ -14,10 +20,12 @@
1420

1521

1622
## Версия 1.5 (2016-12-20)
23+
1724
* \+ Параметры → `$params->parentIds[$i]`: Может принимать значение `'current'` для использования ID текущего документа.
1825

1926

2027
## Версия 1.4 (2016-11-04)
28+
2129
* \* Внимание! Требуется PHP >= 5.4.
2230
* \* Внимание! Требуется (MODX)EvolutionCMS.plugins.ManagerManager >= 0.7.
2331
* \* Виджет теперь использует стиль именованных параметров (с обратной совместимостью).
@@ -26,20 +34,24 @@
2634

2735

2836
## Версия 1.3 (2016-06-06)
37+
2938
* \* Менее хрупкий параметр `$max` (closes #4).
3039
* \* Параметр `$parentIds` может равняться `0` и равен `0` по умолчанию (closes #1).
3140
* \+ Добавлен параметр `$allowDoubling`, позволяющий разрешить выбор дубликатов (closes #5).
3241

3342

3443
## Версия 1.2.2 (2014-02-14)
44+
3545
* \* Плагин jQuery.ddMultipleInput обновлён до версии 1.2.1 (небольшие изменения стиля).
3646

3747

3848
## Версия 1.2.1 (2014-01-09)
49+
3950
* \* Небольшие изменения для совместимости с PHP < 5.3.
4051

4152

4253
## Версия 1.2 (2013-12-11)
54+
4355
* \* Внимание! Требуется (MODX)EvolutionCMS.plugins.ManagerManager >= 0.6.
4456
* \+ Добавлена возможность задавать шаблон отображения элемента в списке выбора документов (см. параметр `$labelMask`).
4557
* \+ В условиях фильтрации (параметр `$filter`) могут использоваться не только поля документа, но и TV.
@@ -53,12 +65,14 @@
5365

5466

5567
## Версия 1.1b (2013-08-09)
68+
5669
* \+ Добавлена возможность выбирать документы из нескольких родителей (в параметр `parentIds` теперь передаётся список через запятую).
5770

5871

5972
## Версия 1.0b (2013-05-30)
73+
6074
* \+ Первый релиз.
6175

6276

63-
<link rel="stylesheet" type="text/css" href="https://DivanDesign.ru/assets/files/ddMarkdown.css" />
77+
<link rel="stylesheet" type="text/css" href="https://raw.githack.com/DivanDesign/CSS.ddMarkdown/master/style.min.css" />
6478
<style>ul{list-style:none;}</style>

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A widget for ManagerManager that makes selection of documents IDs easier.
66
## Requires
77

88
* PHP >= 5.4
9-
* [(MODX)EvolutionCMS.plugins.ManagerManager](https://code.divandesign.biz/modx/managermanager) >= 0.7
9+
* [(MODX)EvolutionCMS.plugins.ManagerManager](https://code.divandesign.ru/modx/managermanager) >= 0.7
1010

1111

1212
## Installation
@@ -15,8 +15,8 @@ To install you must unzip the archive to `/assets/plungins/managermanager/widget
1515

1616

1717
You may also read this documentation:
18-
* [(MODX)EvolutionCMS.plugins.ManagerManager](https://code.divandesign.biz/modx/managermanager).
19-
* [(MODX)EvolutionCMS.modules.ddMMEditor](https://code.divandesign.biz/modx/ddmmeditor).
18+
* [(MODX)EvolutionCMS.plugins.ManagerManager](https://code.divandesign.ru/modx/managermanager).
19+
* [(MODX)EvolutionCMS.modules.ddMMEditor](https://code.divandesign.ru/modx/ddmmeditor).
2020

2121

2222
## Parameters description
@@ -115,25 +115,26 @@ You may also read this documentation:
115115

116116
```php
117117
mm_ddSelectDocuments([
118-
//TV for which the widget is applied to
118+
// TV for which the widget is applied to
119119
'fields' => 'favoriteProducts',
120-
//Let 314 is ID of catalog document, that contains children-products
120+
// Let 314 is ID of catalog document, that contains children-products
121121
'parentIds' => [314],
122-
//Search in 3 levels
122+
// Search in 3 levels
123123
'depth' => 3,
124-
//Display only published documents with template ID == 42
124+
// Display only published documents with template ID == 42
125125
'filter' => 'template=42&published=1',
126-
//Only 3 or less products can be selected
127-
'maxSelectedItems' => 3
126+
// Only 3 or less products can be selected
127+
'maxSelectedItems' => 3,
128128
]);
129129
```
130130

131131

132132
## Links
133133

134-
* [Home page](https://code.divandesign.biz/modx/mm_ddselectdocuments)
134+
* [Home page](https://code.divandesign.ru/modx/mm_ddselectdocuments)
135135
* [Telegram chat](https://t.me/dd_code)
136136
* [Packagist](https://packagist.org/packages/dd/evolutioncms-plugins-managermanager-mm_ddselectdocuments)
137+
* [GitHub](https://github.com/DivanDesign/EvolutionCMS.plugins.ManagerManager.mm_ddSelectDocuments)
137138

138139

139-
<link rel="stylesheet" type="text/css" href="https://DivanDesign.ru/assets/files/ddMarkdown.css" />
140+
<link rel="stylesheet" type="text/css" href="https://raw.githack.com/DivanDesign/CSS.ddMarkdown/master/style.min.css" />

README_ru.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,16 @@
115115

116116
```php
117117
mm_ddSelectDocuments([
118-
//TV, для которой применить виджет
118+
// TV, для которой применить виджет
119119
'fields' => 'favoriteProducts',
120-
//Пусть 314 — это ID документа-каталога, содержащего дочерние документы-товары
120+
// Пусть 314 — это ID документа-каталога, содержащего дочерние документы-товары
121121
'parentIds' => [314],
122-
//Ищем на 3 уровня вложенности
122+
// Ищем на 3 уровня вложенности
123123
'depth' => 3,
124-
//Отображаем только опубликованные документы с ID шаблона == 42
124+
// Отображаем только опубликованные документы с ID шаблона == 42
125125
'filter' => 'template=42&published=1',
126-
//Только 3 или меньше товара может быть выбрано
127-
'maxSelectedItems' => 3
126+
// Только 3 или меньше товара может быть выбрано
127+
'maxSelectedItems' => 3,
128128
]);
129129
```
130130

@@ -134,6 +134,7 @@ mm_ddSelectDocuments([
134134
* [Home page](https://code.divandesign.ru/modx/mm_ddselectdocuments)
135135
* [Telegram chat](https://t.me/dd_code)
136136
* [Packagist](https://packagist.org/packages/dd/evolutioncms-plugins-managermanager-mm_ddselectdocuments)
137+
* [GitHub](https://github.com/DivanDesign/EvolutionCMS.plugins.ManagerManager.mm_ddSelectDocuments)
137138

138139

139-
<link rel="stylesheet" type="text/css" href="https://DivanDesign.ru/assets/files/ddMarkdown.css" />
140+
<link rel="stylesheet" type="text/css" href="https://raw.githack.com/DivanDesign/CSS.ddMarkdown/master/style.min.css" />

composer.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dd/evolutioncms-plugins-managermanager-mm_ddselectdocuments",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "A widget for ManagerManager that makes selection of documents IDs easier.",
55
"keywords": [
66
"modx",
@@ -22,22 +22,16 @@
2222
"select documents ids",
2323
"select children ids"
2424
],
25-
"homepage": "https://code.divandesign.biz/modx/mm_ddselectdocuments",
25+
"homepage": "https://code.divandesign.ru/modx/mm_ddselectdocuments",
2626
"support": {
2727
"chat": "https://t.me/dd_code"
2828
},
2929
"authors": [
30-
{
31-
"name": "DD Group",
32-
"email": "code@DivanDesign.biz",
33-
"homepage": "https://code.divandesign.biz",
34-
"role": "Owner"
35-
},
3630
{
3731
"name": "Ilyas Ronef",
3832
"email": "ilyas@DivanDesign.ru",
3933
"homepage": "https://ronef.ru",
40-
"role": "Developer"
34+
"role": "Owner"
4135
},
4236
{
4337
"name": "Vladislav Lavrov",

0 commit comments

Comments
 (0)