Page 1 of 1

XML Feed Woes - Already Tried Searching Forums

Posted: 09 Jan 2018, 17:42
by tmarsh3
Hi all. I've scoured the forums for the old posts, but it seems the links about the XML feed HowTo are broken. I would not post otherwise. I can't figure out how to get the XML export feature to recognize my new templates.

Here's the broken link from an older post which I believe had the missing info I need:
http://www.opencats.org/forums/viewtopi ... &t=16#p165

I've pieced together most of what I need from other posts, but have been unable to get the app to use anything but the default xml template, which ironically is different than what's specified in constants.php. Constants has the following:
Code: Select all
define('DEFAULT_XML_EXPORT_TEMPLATE', 'rss');
but the app is definitely defaulting to the indeed.xtpl file. I've verified this by changing indeed.xtpl and watching the changes get displayed instantly.

I tried jut adding templates to the xml_templates directory, but that doesn't seem to do anything, even if I specify the template name using a query string parameter like t=footemplate. In the code, I found a reference to a database query selecting the available templates and some metadata about them. Do I need to edit the DB directly to add templates or is there a screen or config file for this and then how to I tell the xml module to use a specific template?

Any guidance would be greatly appreciated.

Re: XML Feed Woes - Already Tried Searching Forums

Posted: 19 Feb 2018, 13:30
by RussH
This is the broken link you're looking for;
viewtopic.php?f=2&t=16#p165

Let me know if you're still stuck!