Currently working on updating my site to run the latest version of Silverstripe. So far so good, but like always, the data seems to get malformed. I need to go about cleaning up pretty much all entries I created. This also includes figuring out how to restore all my previous blog entries.
0 comments | Read the full post
I just spent some time trying to get my latest blog post to appear on my home page. I was previously using SilverStripe's get_one method, as I just wanted to retrieve the latest post, but it kept returning the first entry even after specifying to sort by Date in descending order. I ended up using the get method instead and it allowed me to properly structure the SQL query.