Jump to:

23376 Posts in 18295 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » XML and SS

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

Page: 1
Go to End
Author Topic: 694 Views
  • Webdoc
    Avatar
    Community Member
    332 Posts

    XML and SS Link to this post

    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

  • tobych
    Avatar
    Community Member
    97 Posts

    Re: XML and SS Link to this post

    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

    694 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.