By dakke on
Hi all,
I got a view that shows a node and some fields of other nodes referenced in that node. Example:
Content type: author
Content type: article
View:
- article 1
-- title 1
-- author X (content type author)
-- page 4
- article 2
-- title 2
...
I would like to create a custom XML for that:
<article>
<title>title 1</title>
<author>author X</author>
<page>page 5</page>
</article>
<article>
<title>title 2</title>
...How do I tackle this? Should I use services, views overrides (cf. tpl.php) or some module out there?
Comments
http://drupal.org/project/vie
http://drupal.org/project/views_data_export
What's new and changing in PHP 8.4
Well, not really
Thanks for the reply.
The data export is cool, though it does not allow to fully customize the export. I do not control every single line of it.
It generates indeed an XML, yet I can not state the example
It adds something like
Or is it possible to fully control the output using this module?
I'm sorry I didn't use this
I'm sorry I didn't use this xml export feature for a long time so can't remember exactly. But there was a way to change the "node" text to whatever we want in the style setting (where you choose csv, xml, or other format). Can't remember exactly but searching that module's issue queue should give some help.
What's new and changing in PHP 8.4
Not a problem, thanks for the
Not a problem, thanks for the reply.
I was more on the line of creating a tpl.php file for the view, thus building my own XML for the data export is not flexible enough and the work to get it working might be equal to creating my own view.tpl
However, you need to know your fields variables for that. I've been on it for a week and something weird is wrong. I simply can't get my fields to print out. I followed the docs, searched the net, tried a wide range of stuff and nothing is printed.
I get the devel module enabled and use
to see the fields values. And nothing there. Can't get my head around it really, it's rather irritating. Running out of ideas to be honest.
Without those fields, I can't start building the XML...