Fixes #6570 - Dynamically fetch pages for sidebar
Merge pull request #14 from daviddavis/temp/20140710125906

Fixes #6570 - Dynamically fetch pages for sidebar