Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
/ cfi Public archive

Commit f823d0b

Browse files
authored
v1.0.12
Fix language files and description
1 parent ec7b694 commit f823d0b

File tree

7 files changed

+32
-28
lines changed

7 files changed

+32
-28
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# CFI
22

3-
![Version](https://img.shields.io/badge/VERSION-1.0.11-0366d6.svg?style=for-the-badge)
3+
![Version](https://img.shields.io/badge/VERSION-1.0.12-0366d6.svg?style=for-the-badge)
44
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
55
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)
66

77
_description in Russian [here](README.ru.md)_
88

9-
System plugin for Joomla 3.7+ for importing and exporting articles with additional fields
9+
System plugin for Joomla! 3.7+ for importing and exporting articles with custom fields.
1010

11-
The plugin is designed to import and export standard articles and custom additional fields for them.
11+
Adapted for Joomla! 4.
12+
13+
The plugin is designed to import and export standard articles and custom custom fields for them.
1214

1315
Export is initially adapted for opening the resulting file in MS Excel or its analogs.
1416

@@ -35,9 +37,9 @@ Fields **articleid** and **articletitle** are required, if they are missing, dat
3537

3638
Any other main article fields are ignored.
3739

38-
Any other field names are taken as the names of additional article fields. In cases where the article does not contain the indicated additional fields, the latter will be ignored.
40+
Any other field names are taken as the names of custom article fields. In cases where the article does not contain the indicated custom fields, the latter will be ignored.
3941

40-
The discrepancy between the number of values ​​in the row and the discrepancy with the number of field headers leads to the refusal to process this row. When importing, additional article fields that are not in the file are not affected.
42+
The discrepancy between the number of values ​​in the row and the discrepancy with the number of field headers leads to the refusal to process this row. When importing, custom article fields that are not in the file are not affected.
4143

4244
Data on import errors is stored in the *cfi.php* log in the standard Joomla log folder.
4345

@@ -49,13 +51,13 @@ If there are no data import errors, the imported file is deleted, otherwise the
4951

5052
When exporting, data is written to the file as is, in the format in which it is stored in the database of your site: plain text, text with HTML markup, json structures and other complex string structures.
5153

52-
For standard additional Joomla fields of a list type that return the structure of the stored data in the form of unassociated arrays, json is returned to the resulting file. For non-standard fields, the structure `array::` is written before the json value in the file: this is necessary so that with the possible subsequent import of this data, the plugin can parse the json value from the file and substitute the prepared array for the corresponding field. If you don’t understand anything from the above phrase, it’s okay, just don’t touch the value of `array ::` in your file or delete this column completely in order to avoid damage to the data of the corresponding article field.
54+
For standard custom Joomla fields of a list type that return the structure of the stored data in the form of unassociated arrays, json is returned to the resulting file. For non-standard fields, the structure `array::` is written before the json value in the file: this is necessary so that with the possible subsequent import of this data, the plugin can parse the json value from the file and substitute the prepared array for the corresponding field. If you don’t understand anything from the above phrase, it’s okay, just don’t touch the value of `array ::` in your file or delete this column completely in order to avoid damage to the data of the corresponding article field.
5355

5456
---
5557

5658
### Data protection during import
5759

58-
The data of additional fields are written to the database by direct queries and are not subjected to any processing. Due to the fact that this data may contain HTML markup tags, json strings or other string constructs containing specialized characters, **data is not shielded!** Please ensure the safety of the imported data at the stage of generating the file for importing data into Joomla .
60+
The data of custom fields are written to the database by direct queries and are not subjected to any processing. Due to the fact that this data may contain HTML markup tags, json strings or other string constructs containing specialized characters, **data is not shielded!** Please ensure the safety of the imported data at the stage of generating the file for importing data into Joomla .
5961

6062
**The plugin developer is not responsible for the incorrect content of the imported files, which may damage your site**.
6163

README.ru.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
# CFI
22

3-
![Version](https://img.shields.io/badge/VERSION-1.0.11-0366d6.svg?style=for-the-badge)
3+
![Version](https://img.shields.io/badge/VERSION-1.0.12-0366d6.svg?style=for-the-badge)
44
![Joomla](https://img.shields.io/badge/joomla-3.7+-1A3867.svg?style=for-the-badge)
55
![Php](https://img.shields.io/badge/php-5.6+-8892BF.svg?style=for-the-badge)
66

7-
Системный плагин для Joomla! 3.7+ для импорта и экспорта материалов с участием дополнительных полей.
7+
Системный плагин для Joomla! 3.7+ для импорта и экспорта материалов с участием настраиваемых полей.
88

9-
Плагин предназначен для импорта и экспорта стандартных материалов и кастомных дополнительных полей для них.
9+
Адаптировано для Joomla! 4.
10+
11+
Плагин предназначен для импорта и экспорта стандартных материалов и кастомных настраиваемых полей для них.
1012

1113
Экспорт изначально адаптирован под открытие результирующего файла в MS Excel или его аналогах.
1214

1315
#### ВАЖНО:
1416

15-
- Плагин не обрабатывает содержимое материалов и кастомных дополнительных полей!
17+
- Плагин не обрабатывает содержимое материалов и кастомных настраиваемых полей!
1618
- Плагин не обрабатывает изображения для вступительного и полного текста материала!
1719
- При выборе конкретной категории вложенные категории не обрабатываются! Это сделано специально: не всем и не всегда необходимо обрабатывать вложенные категории.
1820
- Плагин не обрабатывает категории материалов и категории вообще: только сами материалы! При импорте данных категории не создаются!
1921

20-
**Причина вышеописанных ограничений и оговорок очень проста: изначальная цель работы плагина – *обработка кастомных дополнительных полей материала*, и не более того.**
22+
**Причина вышеописанных ограничений и оговорок очень проста: изначальная цель работы плагина – *обработка кастомных настраиваемых полей материала*, и не более того.**
2123

2224
---
2325

@@ -42,7 +44,7 @@
4244

4345
Любые иные основные поля материала игнорируются.
4446

45-
Любые иные имена полей принимаются за имена дополнительных полей материала. В случаях отстутствия у материала указанных дополнительных полей последние будут игнорироваться.
47+
Любые иные имена полей принимаются за имена настраиваемых полей материала. В случаях отстутствия у материала указанных настраиваемых полей последние будут игнорироваться.
4648

4749
Несоответствие количества значений в строке несоответствию количеству заголовков полей приводит к отказу от обработки этой строки. При импорте дополнятельные поля материала, отсутствующие в файле, не затрагиваются.
4850

@@ -56,13 +58,13 @@
5658

5759
При экспорте данные записываются в файл как есть, в том формате, в котором они хранятся в БД вашего сайта: простой текст, текст с разметкой HTML, структуры json, иные сложные строковые структуры.
5860

59-
Для стандартных дополнительных полей Joomla списочного типа, возвращающих структуры хранимых данных в виде неассоциированных массивов, в результирующий файл возвращается json. Для нестандартных полей в файл перед json-значением записывается структура `array::`: это необходимо для того, чтобы при возможном последующем импорте этих данных плагин смог разобрать json-значение из файла и подставить соответствующему полю подготовленный массив. Если из вышеуказанной фразы вы ничего не поняли – не страшно, просто не трогайте значение `array::` в вашем файле или удалите этот столбец полностью во избежание повреждения данных соответсвующего поля материала.
61+
Для стандартных настраиваемых полей Joomla списочного типа, возвращающих структуры хранимых данных в виде неассоциированных массивов, в результирующий файл возвращается json. Для нестандартных полей в файл перед json-значением записывается структура `array::`: это необходимо для того, чтобы при возможном последующем импорте этих данных плагин смог разобрать json-значение из файла и подставить соответствующему полю подготовленный массив. Если из вышеуказанной фразы вы ничего не поняли – не страшно, просто не трогайте значение `array::` в вашем файле или удалите этот столбец полностью во избежание повреждения данных соответсвующего поля материала.
6062

6163
---
6264

6365
### Защита данных при импорте
6466

65-
Данные дополнительных полей записываются в БД прямыми запросами и не подвергаются какой-либо обработке. Ввиду того, что в этих данных могут присутствовать теги HTML-разметки, json-строки или иные строковые конструкции, содержащие специализированные символы, **экранирование данных не производится!** Пожалуйста, обеспечьте безопасность импортируемых данных на этапе генерации файла для импорта данных в Joomla.
67+
Данные настраиваемых полей записываются в БД прямыми запросами и не подвергаются какой-либо обработке. Ввиду того, что в этих данных могут присутствовать теги HTML-разметки, json-строки или иные строковые конструкции, содержащие специализированные символы, **экранирование данных не производится!** Пожалуйста, обеспечьте безопасность импортируемых данных на этапе генерации файла для импорта данных в Joomla.
6668

6769
**Разработчик плагина не несёт ответственность за некорректное содержимое импортируемых файлов, которое может вывести из строя ваш сайт**.
6870

cfi.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension version="3.7" type="plugin" group="system" method="upgrade">
33
<name>PLG_CFI</name>
4-
<version>1.0.11</version>
4+
<version>1.0.12</version>
55
<creationDate>August 2022</creationDate>
66
<author>Aleksey A. Morozov</author>
77
<authorEmail>alekvolsk@yandex.ru</authorEmail>

language/en-GB/en-GB.plg_system_cfi.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
; @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
55

66
PLG_CFI="System - CFI"
7-
PLG_CFI_XML_DESCRIPTION="Plugin for importing and exporting articles with additional fields"
7+
PLG_CFI_XML_DESCRIPTION="Plugin for importing and exporting articles with custom fields"
88
PLG_CFI_PARAM_CP="Code page for file conversion"
99
PLG_CFI_PARAM_SHOWDESC="Show a description of the format of the imported file"
1010
PLG_CFI_BUTTON="Import and export CSV"
@@ -13,7 +13,7 @@ PLG_CFI_CB_UTF_CONVERT="Convert encoding UTF-8 <=> %s (encoding is selected in t
1313

1414
PLG_CFI_SELECT_CATEGORIES="– Select category –"
1515
PLG_CFI_BTN_EXPORT="Export articles"
16-
PLG_CFI_NO_SELECT_CATEGORY="No category has been selected for export. Additional article fields are assigned to categories, so selecting a category is required."
16+
PLG_CFI_NO_SELECT_CATEGORY="No category has been selected for export. custom article fields are assigned to categories, so selecting a category is required."
1717
PLG_CFI_EXPORT_SUCCESS="Export complete"
1818
PLG_CFI_EXPORT_ERROR="Error exporting data"
1919
PLG_CFI_EXPORT_NO_CATEGORY="Category not specified or incorrectly specified"
@@ -48,7 +48,7 @@ PLG_CFI_RESULT="<span>Imported records from file: <strong>%s</strong><br>New art
4848
PLG_CFI_RESULT_ERROR="<span class='text-error'>Raw file lines: <strong>%s</strong></span>"
4949

5050
PLG_CFI_DESC_FORMAT_LABEL="Description of the file format"
51-
PLG_CFI_DESC_FORMAT="<p><strong>Description of the file format of the imported articles with additional fields</strong></p>
51+
PLG_CFI_DESC_FORMAT="<p><strong>Description of the file format of the imported articles with custom fields</strong></p>
5252
<p>File format for imported data: <strong>CSV</strong>. Default a file encoding, if the option «Convert encoding…» is not set: <strong>UTF-8 w/o BOM</strong>. The data separator in the CSV file must be only the <code>;</code> symbol.</p>
5353
<p>The first line of a file is always the file field headers.</p>
5454
<p>Reserved field names:</p>
@@ -59,13 +59,13 @@ PLG_CFI_DESC_FORMAT="<p><strong>Description of the file format of the imported a
5959
<p><code>articleintrotext</code> – introductory text of the article;</p>
6060
<p><code>articlefulltext</code> – the full text of the article.</p>
6161
<p>The fields <i>articleid</i> and <i>articletitle</i> are required; if they are absent, data will not be imported from the file.</p>
62-
<p>Any other field names are taken as the names of additional article fields. In cases of absence of the indicated fields from the article, the latter will be ignored.</p>
62+
<p>Any other field names are taken as the names of custom article fields. In cases of absence of the indicated fields from the article, the latter will be ignored.</p>
6363
<p>Inconsistency of the number of values ​​in the row to the discrepancy in the number of field headers leads to the refusal to process this row.</p>
6464
<p>Data on import errors is stored in the <i>cfi.php</i> log in the standard Joomla log folder.</p>
6565
<p>If there are no data import errors, the imported file is deleted, otherwise the file is saved in the standard Joomla temporary files folder.</p>"
6666

6767
PLG_CFI_DESC_WARN_LABEL="Disclaimer"
68-
PLG_CFI_DESC_WARN="<p>The data of additional fields are written to the database by direct queries and are not subjected to any processing.
68+
PLG_CFI_DESC_WARN="<p>The data of custom fields are written to the database by direct queries and are not subjected to any processing.
6969
Due to the fact that html markup tags, json strings or other string constructs containing specialized characters may be present in this data,
7070
<strong>Data is not shielded!</strong> Please ensure the safety of the imported data during the generation of the file for importing data into Joomla.</p>
7171
<hr>

language/en-GB/en-GB.plg_system_cfi.sys.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
; @license GNU General Public License version 3 or later; see http://www.gnu.org/licenses/gpl-3.0.txt
55

66
PLG_CFI="System - CFI"
7-
PLG_CFI_XML_DESCRIPTION="Plugin for importing and exporting articles with additional fields"
7+
PLG_CFI_XML_DESCRIPTION="Plugin for importing and exporting articles with custom fields"
88
J_JOOMLA_COMPATIBLE="<p>To install %s upgrade Joomla version to %s or later.</p>"
99
J_PHP_COMPATIBLE="<p>To install %s upgrade PHP version to %s or later.</p>"

0 commit comments

Comments
 (0)