Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paria Shiri 36 posts 109 karma points
    Jul 11, 2022 @ 10:58
    Paria Shiri
    0

    BlockListMvc

    Hi guys, I used to use Søren's BlockListMvc package in Umbraco 8, but that package doesn't work in 9. Do you have any suggestions? I am thinking about rewriting that package but I m not sure is it possible or not.

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jul 12, 2022 @ 19:20
    Dan Diplo
    1

    I'm not that familiar with the package, but could you use View Components in 9 to render blocks? They have all the features of a controller but are simpler to utilise.

    https://our.umbraco.com/documentation/Reference/Templating/Mvc/ViewComponents

  • Paria Shiri 36 posts 109 karma points
    Jul 13, 2022 @ 08:56
    Paria Shiri
    0

    the purpose of that package was to transfer business logic from views to controllers. I may be able to use @(await Component.InvokeAsync("xxx")) and have the logic there. I try it thanks.

Please Sign in or register to post replies

Write your reply to:

Draft