After upgrade to version 7xx new pages are not rendering blocks.
See original GitHub issueHello guys,
First of all, I love Piranha CMS.
I’m implementing a new website. I started before release 7. After upgrade to release 7.xx when I create a new page the current views are not able to render blocks. Aparent there is a new way to render blocks.
This is an old view I have on the project I just created a new page on my web site.
Am I doing something wrong or i missed some part of the upgrade?
View:
<div class="main mt-5">
<div class="container">
<div class="row justify-content-center">
<div class="col-sm-10 page-body">
<div class="container">
@Html.DisplayFor(m => m.Blocks)
</div>
</div>
</div>
</div>
</div>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Upgrading 6.x themes to 7.x
In Drupal up to version 6, the $content variable in page.tpl.php contained the main page content appended with the blocks positioned into the ......
Read more >[1.12.2] Blocks not rendering correctly : r/feedthebeast
I am trying to update a mod to test in a modpack I am creating. I am almost done with this whole ordeal...
Read more >content-visibility: the new CSS property that boosts ... - web.dev
The CSS content-visibility property enables web content rendering performance benefits by skipping rendering of off-screen content.
Read more >Solved: New vCenter server updates are available: 8.0.0.10...
The issue is version 7 shouldn't be alerting there is a new version 8. If you go to the management login, there is...
Read more >How to upgrade - Material for MkDocs
If you've overridden a block, check base.html for potential changes; If you've overridden a template, check the respective *.html file for potential changes....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! Since you’ve upgraded your project you’re simply missing the DisplayTemplate for the new ColumnBlock. DisplayTemplatrs are not a part of the core packages but are provided by the templates when you create a new project. You can find the display template in the template project here:
https://github.com/PiranhaCMS/piranha.core.templates/blob/master/web/mvc/Views/Cms/DisplayTemplates/ColumnBlock.cshtml
Best regards
Thank you so much mate.