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!
- barracuda69
- RO CSVI
- Thursday, 22 December 2016
- Subscribe via email
0
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.
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
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
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
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
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.
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
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
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!
Do you also happen to know how to impint the creation date and time in the header of the same xml?
Thanks!
Accepted Answer
Pending Moderation
Hello,
Look for function headerText and you can write some custom code in this method to get the date and time.
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
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »