Hi,
I'm using XML layout to export a custom xml structure, mainly to avoid <channel> and <item>.
In the attached screenshot is the structure I use.
My problem is that if I don't enter any template fields so that CSVI will use the layout I created, no export is performed as it requires template fields. If, on the other hand, I enter any template fields (used one as an example) I get the default layout as follows:
<?xml version="1.0" encoding="UTF-8"?> <channel> <item> <id>2447</id> </item> </channel>Any ideas on what I'm doing wrong?
Thanks!
Hi,
Found the problem!
Forgot to select "Custom" Website in File tab...
Sorry ;-)
D
Hello Dennis,
My problem is that if I don't enter any template fields so that CSVI will use the layout I created, no export is performed as it requires template fields. If, on the other hand, I enter any template fields (used one as an example) I get the default layout as follows:
Without template fields CSVI does not know what to export from your database so adding template field is a required.
To get the node as you need in export, try creating your own export XML handler in the folder administrator/components/com_csvi/helper/file/export/xml. You can take csvimproved.php file in the same folder as an example, make a duplicate of it, rename the file and edit it. Also make sure that you change the class name in the file CsviHelperFileExportXmlCsvimproved to class CsviHelperFileExportXmlxxxxxxx, where xxxxxxx is the name of your new file. Change the node names in functions headerText, footerText, NodeStart and NodeEnd and select this file as export type in your template settings on File tab. Run the export. See if it helps.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Hello Dennis,
Forgot to select "Custom" Website in File tab...
Glad you found it, just wrote a reply to your issue :)
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Thanks Tharuna ;-)
Log in to reply to this topic.