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, Ed, biapar, Willr, Ingo, swaiba

XML and SS

Go to End

2 Posts   917 Views


Community Member, 349 Posts

11 December 2009 at 12:07pm

Edited: 11/12/2009 12:10pm

Is there any way possible do edit xml data file via cms??
So that it shows the file content in cms and you can edit and save it


Community Member, 97 Posts

14 December 2009 at 9:55am

I don't think there's anything like this included in SS.

The solution would depend on your particular situation, of course, but one option might be to store the content of the XML file in a TextareaField, and to overload doPublish() for the class so it copies the contents out to a file. SilverStripe's "Error Page" type works similarly: see the method doPublish in sapphire/core/model/ErrorPage.php.