I've red so much about the symfony cmf. Red the whole docu and the cookbook too. Now i wanna create my first cms application. It is very easy to get a starting kit based on the sandbox. This works. I am able to create and manage all documents from all bundles. I am able to setup the rendering. But how do i work with custom documents which can contain some parts of the cmf?
For example i wanna write a article bundle for a reporter to manage its articles. These articles can contain text, title, some images or other documents like pdf. They are referred to groups, which can be documents too, cause i want to give them some text, title and a image.
This should be a typical task for a cms and i want to solve it with the symfony cmf. But what is the right way?
Easiest way: Use the base documents, but this would mean i have to say the cms admin to create some blocks and combine them, or to create a StaticContent document and refer some imageBlocks. The Controller for the rendering of the frontend view will work on its own only by setting some options in the config.
Create a ArticleDocument which can inherit from the AbstractBlock or from the StaticContent and add some more informations i would need. Here i need to write an own Controller and set hin in the conifg. By this i can offer a single "ArticleDocument item" in the backend to manage and no list of independent base documents, which could be confusing for an cms admin who only wants to manage its articles
Create an independent ArticleDocument based on the phpcr, maybe with some properties which will be needed for the menue and routing. But then i would write a complete new controller and map "my" informations to some cmf blocks or content documents to render them.
A part of this question is based on my lack of experience in working with document. I need to get a better "document view" instead of my "RDMS-view" on Objects. But i wanna learn it by using the symfony cmf.
Are there some examples which build custom Documents? The Sandbox is cool but only shows the frontend work in DemoBundle.