Adds a simple implementation for an automatic generation of a page tree to build a menu