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

XML and SS


Go to End


2 Posts   1010 Views

Avatar
Webdoc

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

Avatar
tobych

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.

Toby