1. barracuda69
  2. RO CSVI
  3. Monday, 29 January 2018
  4.  Subscribe via email
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!

Dennis Screen Shot 2018-01-29 at 12.25.38 μμ.png
Accepted Answer Pending Moderation
Hi,

Found the problem!

Forgot to select "Custom" Website in File tab...

Sorry ;-)

D
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
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
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
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
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Thanks Tharuna ;-)
  1. more than a month ago
  2. RO CSVI
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!