msExportUsersExcel

Export Users MODX REVOLUTION
Version 1.0.1-beta
Release date 02.25.2019
Downloads 286
Views 1 942
Warning! This component requires PHP version 5.4 or higher! If your site uses PHP less than required, the installation of this package could break it.
The application for exporting MODX Revolution users to XLS, XLSX, CSV.
When unloading, filters and sorting are taken into account.

Download example of user export


Export button

After installation, you will have a button for exporting.



Export Console

When you export, the console starts to inform you about the export process



Exported file

This is how the exported file looks.



System Settings


The following options are available
Automatically download after export
msexportordersexcel_download
Yes

File name
msexportordersexcel_filename
Export orders% d.% m.% Y

Source to save default files
msexportordersexcel_source_default
is installed automatically after installation

Enable date formatting
msexportordersexcel_date_process
Yes

Date format
msexportordersexcel_date_format
d.m.Y H: i: s

Tab name
msexportordersexcel_tab
Export orders

Managing Export Profiles


The system uses profiles configured through the ExportUsers component. In total, there are two orders.json and ordersproducts.json

core/components/msexportordersexcel/profiles/orders.json
core/components/msexportordersexcel/profiles/ordersproducts.json

If you have enough knowledge then you can try to modify them manually.
To understand how the structure of the profile is structured, you need to review the ExportUsers


After making changes to the profile, you need to run the script in the console:
/* @var msExportUsersExcel $msExportUsersExcel */
$msExportUsersExcel = $modx->getService('msExportUsersExcel', 'msExportUsersExcel', MODX_CORE_PATH . 'components/msexportusersexcel/model/');
$msExportUsersExcel->importConfigs();

Attention!!! If you manually modify the profile, you will often violate the export process. So do not forget to backup profiles

By default, the fields are unloaded:
username,active,groups,Profile.fullname,Profile.email,phone,createdon,Profile.mobilephone,Profile.gender,Profile.country,Profile.state,Profile.city,Profile.zip,Profile.fax,Profile.blocked,Profile.logincount,Profile.lastlogin,Profile.thislogin


Video instruction

By expanding the fields through the component ExportUsers

Посмотреть

1.0.1-beta

  • Исправлен баг подключения процессора при переносе или переименовании папки core
  • Поддержка английского языка

1.0.0-beta

  • New build script.