Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Much of this module is great! However I'm having trouble understand how to show multiple attached files per node as XML.
Right now my XML looks like:
<Attached-files>
http://www.site.com/files/filename.pdf, http://www.site.com/files/filename2.pdf
</Attached-files>
The closest I could come to adding enclosures was:
<Attached-files>
<div class="item-list"><ul><li class="first last">http://www.site.com/files/filename.pdf</li> <li>http://www.site.com/files/filename2.pdf</li></ul></div>
</Attached-files>
What I'd ideally like is to be able to include the file description and any other associated meta datas as well like so:
<Attached-files>
<file>
<url>http://www.site.com/files/filename.pdf</url>
<desc>blah</desc>
</file>
<file>
<url>http://www.site.com/files/filename2.pdf</url>
<desc>blah</desc>
</file>
</Attached-files>
Are there settings for this kind of output in Views data export - or do I need another helper module - or to hack some code?
thank you.
Comments
Comment #1
dawnbuie CreditAttribution: dawnbuie commentedping?
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedYou'll likely need a combination of #1446102: Exporting fields that already output valid xml encoded content and then rewrite your field in the Views UI to get the XML you want.
Comment #3.0
(not verified) CreditAttribution: commentedcode tags added