Please note that this functionality is deprecated!
Organizer consists of a browser based application which makes AJAX requests to a server-side program, which then sends data back to the browser using the JSON datatype.
However the server-side program is not limited to using JSON; you can also request data in CSV format (which allows an Admin to download the raw, unformatted data) or in XML format.
When displaying data in XML format, the server-side program is run independently of the browser based application; instead it must be accessed via a URL. This allows you to generate things like an RSS feed or a Sitemap.
RSS feeds and Sitemaps often require a specific name for the outer-most property, or specific attributes. The TUIX model doesn't normally allow you to set these, however when generating an XML feed you can use outer_tag
and outer_tag_attributes
shown here to set them.
Any access to Organizer usually requires an Admin to be logged in, for security reasons.
This is normally beneficial, however as this would not be a practical requirement for XML feed, when generating data in XML format we allow an exception to this rule.
Setting the allow_unauthenticated_xml_access
property allows the data for a panel to be shown in XML form without checking to see if an Admin is logged in. This is intended for use for
generating XML feeds of non-private information.
If you include any refiners, for security reasons you must repeat allow_unauthenticated_xml_access
for each refiner.
Note that this property is read before your preFillOrganizerPanel()
or fillOrganizerPanel()
methods are called, so you cannot change its value in PHP. You can, of course, still use the exit
command in PHP to stop a execution if you don't want anything to be displayed.
If you have allowed unauthenticated access, or if you have not but the current visitor is an Admin logged in to your site, your panel can be accessed in XML mode using a URL of the format:
http://example.com/zenario/admin/ajax.php?_xml=1&path=path
Searching also works; you can offer a version of your panel filtered by a search term but using a URL of the format:
http://example.com/zenario/admin/ajax.php?_xml=1&path=em
path&_search=em
searchterm
xml: