Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

SS2 - Loading XML data for Flash use


Reply


2 Posts   380 Views

Avatar
Johan

Community Member, 49 Posts

27 July 2012 at 2:37am

Hi

I have embed Flash movie in the homepage of a site for IE users who do not have CSS3 Animation support. I have text content inside the movie the user needs to update. What is the best practice for outputting SilverStripe content in XML?

Avatar
Willr

Forum Moderator, 5513 Posts

28 July 2012 at 1:35pm

You can use RestFul server for publishing XML representations of SilverStripe objects - http://api.silverstripe.org/2.4/sapphire/api/RestfulServer.html otherwise you can create your own controller class to output XML rather than HTML. An example of that would be the documentation search which outputs XML (Controller -> https://github.com/silverstripe/silverstripe-docsviewer/blob/master/code/controllers/DocumentationOpenSearchController.php XML -> https://github.com/silverstripe/silverstripe-docsviewer/blob/master/templates/OpenSearchDescription.ss)