XML output in Vivvo

Vivvo CMS supports XML output for all modules (such as box_article_list module), however this option is not enabled by default.

Registering Module

To enable XML output, you need to register the module first:

INSERT INTO `configuration` (
`id` ,
`variable_name` ,
`variable_property` ,
`variable_value` ,
`module` ,
`domain_id` ,
`reg_exp`
)
VALUES (
NULL , 'xml', 'content_handler_function', 'xml_content_handler', 'url_modules', '1', NULL
), (
NULL , 'xml', 'url_handler_function', 'xml_url_handler', 'url_modules', '1', NULL
), (
NULL , 'xml', 'file', 'lib/vivvo/url_handlers/xml.php', 'url_modules', '1', NULL
);

Example

http://www.example.com/xml/box_article_list?search_cid=1

where search_cid is category ID for which the articles are outputted.

 
devdoc/modules/xml.txt · Last modified: 2010/07/22 09:16 by boccio
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki