I've been trying to find a example of this or a tutorial without having to resort to deconstructing a module off Magento connect, but I can't seem to find an example of doing this.
I've created a module that allows users in the back end to create lookbooks. They can tick them of as active/inactive, upload images, assign products to the image add a name and a archive image. This all works fine, and I'm able to access the model just fine in my templates header to output a list of all active lookbooks.
However I'm absolutely stuck when it comes to adding a custom route for say www.example.com/lookbook/{lookbook_id}
or better yet www.example.com/lookbook/{lookbook_slug}
so a user can view a specific lookbook. I've read several articles that talk about making a blog module, however they all seem to stop short of making the single pages for these modules, they seem to just have index pages.
I've been through the Magento extension developers guide and know it will involve adding a frontend routers in my config.xml but without an example, tutorial or better idea of what this is called in Magento terms I'm stuck.
Edit
I've managed to get the route working, and the view method is getting the correct data as i'm able to log it. However I'm not getting anything on page. With template hints on it's loading the 3 col template not the specified one col and the content is't being brought out.
This is my frontend/base/default/layout/lookbook.xml file
<?xml version="1.0"?>
<layout version="0.1.0">
<lookbook_lookbook_view>
<update handle="page_one_column" />
<reference name="content">
<block type="lookbook/lookbook_view" name="lookbook_view" template="lookbook/view.phtml" />
</reference>
</lookbook_lookbook_view>
</layout>
Exit 2
Idiot as I am, Completely forgot to add my layout file to my XML, so I've added the following to my config.xml
<frontend>
...
<layout>
<updates>
<Ahoy_Lookbook>
<file>lookbook.xml</file>
</Ahoy_Lookbook>
</updates>
</layout>
...
</frontend>
</config>
So it's now loading the one page col correctly. Just doesn't seem to want to add my block to content.