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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

SS2 - Loading XML data for Flash use


Go to End


2 Posts   741 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, 5523 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)