- 09 Jan 2018, 17:42
#3485
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:
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.
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
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.define('DEFAULT_XML_EXPORT_TEMPLATE', 'rss');
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.