Hi, I just can't find a way to achieve an use case with a modular project and Twig. Maybe i'm missing something.
Let's consider a CMS context and a NewsBundle bundle ("module"). The user can create a page in his website structure, i.e : "News item page". Then he can assign a layout (a presentation) and a route to this page, i.e : layout.html.twig and newsView route with "/news/{slug}/" pattern. And then he has to fill this page with content elements, which can be static elements like a title (i.e. <h1>), a text block, etc. But it can also be a module, like a news one. So, the presentation layer source code will be similar to the following : * layout.html.twig : https://gist.github.com/823695 * News/view.html.twig : https://gist.github.com/823697 The render tag is, i think, the more appropriate to use in a modular CMS context. The thing is, i have no way to set the <title></title> content with my current news title because my news module (get by the render tag) knows nothing about my layout. But i still need for SEO to be able to do it :) In a way, that's logic, but maybe i'm not the only one to be confronted to this. Any advice ? Thanks. -- Benjamin Dulau - anonymation CEO anonymation.com | code.anonymation.com ben...@anonymation.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en