question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After upgrade to version 7xx new pages are not rendering blocks.

See original GitHub issue

Hello 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>

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tidyuicommented, Nov 2, 2019

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

0reactions
afettercommented, Nov 2, 2019

Thank you so much mate.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found