1. barracuda69
  2. RO CSVI
  3. Thursday, 22 December 2016
  4.  Subscribe via email
HI,

How can I set the name for node <channel></channel> that are enclosing all nodes in an xml export?

Same thing goes for <item> </item>...

Thanks!
Accepted Answer Pending Moderation
Hello,
The nodes <channel> and <item> are CSVI build in ones and there is no direct way to rename them. What you can do is you could create your own XML export handler in the folder administrator/components/com_csvi/helper/file/export/xml you can add your own XML file with these node name changes. You can take csvimproved.php as an example, make a duplicate of it, rename the file and edit it as per your need. This file will show up when you choose XML as export type in your template settings on File tab.
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. # 1
Accepted Answer Pending Moderation
HI,

Thanks, I did as you described but get an error:
pharmalook.gr is currently unable to handle this request.

Only thing I did was replace channel with products and item with product...

Is there anything else I have to do?

Thanks
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
Did you create a duplicate of file with a different name and selected it in export template? If yes, open the file and change the class CsviHelperFileExportXmlCsvimproved to class CsviHelperFileExportXmlxxxxxxx, where xxxxxxx is the name of your new file and try it. If you still have the issue, post the file to check.
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
Changing the class name was the key! Thanks!

Do you also happen to know how to impint the creation date and time in the header of the same xml?

Thanks!
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
Do you also happen to know how to impint the creation date and time in the header of the same xml?

Look for function headerText and you can write some custom code in this method to get the date and time.
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. # 5
Accepted Answer Pending Moderation
Thanks for everything!

Happy Holidays!!!
  1. more than a month ago
  2. RO CSVI
  3. # 6
  • Page :
  • 1


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