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

dawnbuie’s picture

ping?

Steven Jones’s picture

Status: Active » Fixed

You'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

code tags added