As I started working with Hugo, my main bottleneck was the default article sorting.
Hugo default sorting is Weight > Date > LinkTitle > FilePath. While this could be useful, the Date always messes up a list if you want to have a website and not a blog.
My issue was that sorting by title using .Pages.ByTitle on a range wasn’t enough. I still wanted to have Weight first and then the Title.
If you got here, you already know that by now PHP driver (<= 1.2) for Mongo don’t do queries on secondary using the setSlaveOkay() method.
You can use this quick&dirty hack:
This can be useful to someone: you can get the creation time from a Mongo ObjectId, simply by looking at the first four bytes of the id.
PHP example:
I’ve just created and configured a sandbox to who want to play with MongoDB and symfony (1.4) here: https://github.com/dicarsio/symfony-mongo-sandbox
You just need to run the shell script named download-submodules.sh from project folder and you are setup!
This release has already mondoGO Behaviors on it.
As a first post, I’ll show you how easy is to integrate MongoDB (and MondonGO ODM) with Symfony 1.4, with the help of sfMondongoPlugin.