Thanks for the module! Very useful. But I would like to have more flexible configuration

I am generating xml for the site, which contains items from different stores. And this site has its own requirements for the xml document.

1. I would like to be able to add to the XML information about my shop. For example:

<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE yml_catalog SYSTEM "shops.dtd">
(Here begins the description of the store)
<shop>
    <name>BestShop</name>
    <company>Best online seller Inc.</company>
    <url>http://best.seller.ru/</url>
</shop>
(Here ends the description of the store)
(Here begins a list of products)
<offers>
    <model>Cofee 1</model>
    <picture>http://www.example.ru/sites/default/files/1.jpg</picture>
    <url>http://www.example.ru/Cofee/1</url>
    <price>1100</price>
</offers>
<offers>
    <model>Cofee 2</model>
    <picture>http://www.example.ru/sites/default/files/2.jpg</picture>
    <url>http://www.example.ru/Cofee/2</url>
    <price>1100</price>
</offers>
(Here ends the list of products)

It would be very useful the shop section to add to xml from the views header.

2. There is a need to declare the arguments for some fields: <param name="width">. If I'm in the label pointing to the field: param name = "width", then this field is displayed as <paramnamequotwidthquot>

3. A small bug: the label for "global text field: a mathematical expression" is not output as the name for the field.

Comments

Alexander Allen’s picture

Status: Postponed (maintainer needs more info) » Active

I think your requests are valid and useful.

1. If you want me to work on this, I would request that you clean up the example XML you posted a little bit ;)
In particular I would remove all non-valid XML markup (the text in parentheses), and use valid XML comments instead. Also I noticed that you are missing the root element in your example (just a reminder). But overall the Views header functionality is one of the most requested features for this module across all plugins (JSON, XML, etc).

2. I am not mistaken, what you are saying is that XML parameters are not working. No big deal, no big surprise - we'll fix it for ya'. Just open that in a separate feature request, please.

3. I would open this as a separate bug report. We shouldn't mix feature requests and bugs in the same issue for clarity.

Once you perform the necessary modifications to this ticket, I'll add it to my task list. Thank you!

Alexander Allen’s picture

Status: Active » Postponed (maintainer needs more info)

Status: Active » Postponed (maintainer needs more info)