RO CSVI
Send Email After Import
| RO CSVI
With RO CSVI 9.5.0 version we have included a new feature of sending out email after import is finished. This feature uses Joomla Mail templates so it is easy for users to edit and use it as per their requirement.
Custom file helpers since RO CSVI 9.6.0 version
| RO CSVI
In RO CSVI 9.6.0 version we moved location of helper files. Previously export helper files were saved in administrator/components/com_csvi/helper/file/export but now in RO CSVI 9.6.0 version these helper files can found in components/com_csvi/src/File/. So custom helper files in old location should be moved to this new location and also should have filename and classname as per new file helpers.
Create a new export
An example to create a new custom helper for Google export.
- Go to folder components/com_csvi/src/File/Export/Xml and look for file Google.php
- Copy this file and paste it in same folder and rename it to any custom name say Custom_Google.php
- Now open the file Custom_Google.php and change the classname from Google to Custom_Google.
- File is now ready to be customised. You can include your code in this custom helper and select this custom helper file in Website field in export template.
- Save the template and Run the export.
Modify existing exports
To modify your existing exports you need to do the following. This assumes a custom XML export. If you use another format replace Xml with the format you use. This example uses a file named myexport.php.
- Move your file from administrator/components/com_csvi/helper/file/export to components/com_csvi/src/File/Export/Xml
- Rename the file myexport.php to Myexport.php
- Rename the class from
class CsviHelperFileExportXmlMyexport
to
class Myexport implements FileExportInterface - Above the use statements of the file add the line:
namespace Rolandd\Component\Rocsvi\Site\File\Export\Xml; - Check that the signatures of all the methods in the file components/com_csvi/src/File/Export/FileExportInterface.php are the same as in your file. In case they differ, simply copy the lines from the FileExportInterface.php to your own file. For example, if your file has public function headerText($exportFields) but the interface file has public function headerText(array $exportFields): string you can see they are different. Replace your line with the line from the interface. Do not copy the semi-colon at the end of the line to your file.
- Save the changes
- Your custom export should work as expected.
Replacement: regular expressions
| RO CSVI
In the Multi-replace rule of RO CSVI you can do a lot of transformations on the data, the most powerful one is probably the Find and Replace option that supports regular expressions.
Migrate K2 items as Joomla articles using RO CSVI
| RO CSVI
This document explains on how to migrate K2 items from a Joomla 3 installation to Joomla content on a Joomla 4/5 installation. First we explain on how to set up export in Joomla 3 site and then we explain on how to set up import using exported K2 items file.
Migrate K2 categories to Joomla categories using RO CSVI
| RO CSVI
In this document we explain on migrating K2 categories from a Joomla 3 site to Joomla categories in a Joomla 4/5 site. To start with the migration we first create a K2 categories export template.