Copied to clipboard

Flag this post as spam?

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


  • Harry Spyrou 20 posts 111 karma points
    4 days ago
    Harry Spyrou
    0

    Modularizing Umbraco partials

    Hello everyone. So, I'm in a project and my company wants me to use Umbraco as the CMS. I'm familiar with how you render partials, I've done it before.

    So here's the idea. We have a website which has very distinguished blocks in the design. So for example we have something like this

    Container A Container B Container C

    What I want to do in Umbraco is be able to let the client decide in which order they want them. E.g.

    Container B Container A Container C

    Can this be done? If so, what am I supposed to use? Umbraco Partial View Macros?

    I was thinking of having a list of some sort with numbers in Umbraco to let them decide which to render first, but I have no clue if this can be done. I don't need something specific, just to point me towards a way (if it's actually possible).

    Thanks in advance.

  • Alex Skrypnyk 3980 posts 14114 karma points mvp
    4 days ago
    Alex Skrypnyk
    101

    Hi Harry

    It's totally doable with Umbraco, please have a closer look at packages that allow you to do blocks Nested Content(which is part of the Core now) and Stacked Content:

    https://our.umbraco.org/projects/backoffice-extensions/nested-content/

    https://our.umbraco.org/projects/backoffice-extensions/stacked-content/

    The main question about containers is - will you use containers on the page level or should they be selectable from few pages?

    Thanks,

    Alex

  • Harry Spyrou 20 posts 111 karma points
    4 days ago
    Harry Spyrou
    0

    The main question about containers is - will you use containers on the page level or should they be selectable from few pages?

    Both if possible. The main goal is to have Container A, B etc able to be used in its original page AND in other pages in different rows each time. E.g.

    index.html:

    Container A Container B Container C

    being able to do something like :

    Container B
    Container A
    Container C
    

    but without changing the order of let's say our-products.html:

    Container D
    Container A
    Container E
    

    I hope it makes sense. Is that doable? We may not end up doing that after all, but you never know. Also, thanks for your response. I appreciate it.

  • Alex Skrypnyk 3980 posts 14114 karma points mvp
    4 days ago
    Alex Skrypnyk
    0

    Harry, it's doable, you have to put page related containers content to nested content property editor and site related blocks to some folder, and add picker to each page, where you will be able yo pick blocks from that folder in order that you need on this page.

    Thanks,

    Alex

  • Harry Spyrou 20 posts 111 karma points
    4 days ago
    Harry Spyrou
    0

    Ah okay I figured that would be the case. Thanks a lot for the help.

  • Alex Skrypnyk 3980 posts 14114 karma points mvp
    4 days ago
    Alex Skrypnyk
    0

    You are welcome, Harry

    Write how was it and share some results with us

    Thanks,

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft