Developer forum
E-mail notifications
create an xml file with the File Publishing and/or Media Database Module?
Replies
Could you be a bit more specific?
Sorensen wrote:
Could you be a bit more specific?
Is there a way, so that the Media Database / File Publisher creates an XML file with all the files that are in the Module? Or is this something DynamicWeb itself can do?
So if the customer inserts a couple of pictures in the media database / file publisher, the xml file needs to update himself with the new pictures.
Is this possible with the Media Database or with the File Publishing module?
And if it's possible, how can we do this?
We want to use this XML file, so that all the pictures in the module are automaticly loaded in a Flash file.
No, this is not possible using standard software alone. You can alter the templates from Master through File Publishing to output XML rather that HTML, but the File Publishing module only lists file from one folder at a time.
To have a list of all files in all directories, you'll have to create a custom module that scans the directories and generate an XML document for you.
I'm trying to crate an xml stream for this purpose, but the problem is, even if a change the template from the master to the media database, the module will still force the column division for tables. For example if i chose to display the items only in one column the module will place the code <td valign=top width="100%"> between the images.
The problem is "valign=top" is not valign="top" so it will generate xml error. Is there a way to go around this?
You must be logged in to post in the forum