Hi,
I wanted to make resource from xml file that I upload manually. I also wanted to insert Template variable values for that resource. Has anyone idea about how to make resource from XML file?
[ed. note: jaimin10 last edited this post 11 years, 5 months ago.]
-
☆ A M B ☆
- 24,524 Posts
http://modx.com/extras/package/importx
TV values would need to be added separately, since they are dependent on the ID of the newly created resource, and that is not known until after the resource has been created.
You can create a .csv file here
http://www.convertcsv.com/xml-to-csv.htm
If you know PHP, you can create the resource by calling the 'resource/create' processor after setting the Resource fields. You can also include TV values in the array you send to the processor. See the code of the newspublisher.class.php file in the NewPublisher extra to see how to do it.