-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
way of setting title and other pageish variables from content templates #33
Comments
i just added this in the container_container for now as a quick hack {% block page_title contentLocation|split(':')[2]|split('.')[0]|humanize %} |
yeah i think we're gonna need a page object as per comments on #22 |
here's something that implements part of what we want. I'm not sure what the block bundle dep is all about though. |
I once tried adding a stylesheet from inside a static page. It doesn't work and it won't unless we change the way Twig renders the page. When the static content is loaded/parsed, the HTML head has already been finished and will not react to any variables set from anywhere. The only way I can see is the page object you mentioned. Or some mechanism to wrap the whole page and modify the rendered content afterwards. Oh my. This is becoming a CMS. 😉 |
i'd wondered about finding some way to integrate sculpin into symfony and make that a cms. I would have tried that if i didn't only need a couple of pages. |
Don't see the need in that. If someone only needs static pages and nothing else, they are fine with sculpin without Symfony (much less overhead, much faster). |
i meant sculpin for the already built organizing style and the front matter parsing. |
i talked to a friend of mine who ran into this issue, he wrote some twig functions to handle it. i think that the sonata seo bundle has similiar things |
atm it's impossible to set a page title from an included content template since it's inside a block already.
Did you already have an idea on how to handle that?
The text was updated successfully, but these errors were encountered: