Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Loading Content and Asset data externally via Mysql

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: 674 Views
  • luckyluke
    Avatar
    Community Member
    1 Post

    Loading Content and Asset data externally via Mysql Link to this post

    Hi All,

    I am building a site based on Silverstripe 2.3.4. The draft content for site is received via an XML feed from a third party. I am able to create content and add assets via mysql using a cron job. I have 2000+ images loaded via the cron directly into the File table. But for some unknown reason, the asset data gets mysteriously truncated/deleted. I suspect that there is a reference checking being done by SS and it's truncating the remaining files. If that's the case, how do I create the reference so SS leaves the assets intact?

    Thanks in advance.

    Luke

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Loading Content and Asset data externally via Mysql Link to this post

    You have to make sure that the filename matches exactly and the file object is contained in the appropriate folder objects. if not, the filesystem will be resynced, losing IDs etc.

    674 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.