-
Notifications
You must be signed in to change notification settings - Fork 158
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
Add render block controller #42
Comments
bitbager
pushed a commit
to bitbager/SyliusCmsPlugin
that referenced
this issue
Nov 5, 2017
Add development environment
@bitbager thanks to the
and then in your template you could render a block with:
|
Implemented ✅ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For now, we are rendering block through the Twig function. I think that making it with a custom controller would be more flexible as it can have an optional template parameter. Sometimes the default CMS Block templates are not enough. What I would like to achieve is I want it to be rendered like this:
{{ render(path('bitbag_cms_render_block', {'code' : 'homepage_slide_1', 'template' : '@App/Cms/homepageSlide.html.twig'})) }}
instead of{{ bitbag_render_block('homepage_slide_1') }}
. Maybe it would be also a nice idea to allow an optional parameter to thebitbag_render_block
function for a template.The text was updated successfully, but these errors were encountered: