Copied to clipboard

Flag this post as spam?

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


  • P 32 posts 122 karma points
    Jan 15, 2016 @ 09:56
    P
    0

    Add multiple Sections to a Grid and add Settings / Styles to each Section.

    Hi everyone,

    The structure of the grid (in code at least) is:

    foreach(var section in grid.sections) 
    {
       ...
    
       foreach(var row in section.rows)
       {
          ...
       }
    }
    

    This structure is perfect for me but:

    a) I can't see a way to add / remove Sections from a Grid using the Grid editor.

    b) I can't see a way to add Sections Settings / Styles using the Grid editor.

    Is it possible to do either of these things ?

    Thanks.

    Pete

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 15, 2016 @ 10:03
    Dennis Aaen
    0

    Hi Pete and wecome to our :-)

    If you have access to Umbraco TV, I think this video about settings and style in grid layout would help you in the right direction

    https://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/grid-layouts/settings-and-styles/

    We have a hole video chapter about how to work with the grid layout. https://umbraco.tv/videos/umbraco-v7/implementor/fundamentals/grid-layouts/

    Hope this helps,

    /Dennis

  • P 32 posts 122 karma points
    Jan 18, 2016 @ 15:17
    P
    0

    Hi Dennis,

    Thanks for the info, it was useful.

    Unfortunately, the grid layout doesn't work quite the way I'd hoped.

    In the Grid Editor a Section is akin to a Column and there is no way to have two sections where one is above the other. (as shown in the image below)

    enter image description here

    This is a shame. It would be great if the Grid supported both models.

    Cheers

    Pete

  • Kris Janssen 210 posts 569 karma points c-trib
    Jul 01, 2016 @ 13:56
    Kris Janssen
    0

    I recently ran into the same problem as OP.

    You would be surprised how many pre-made site templates actually assume a model where sections are stacked vertically instead of side by side.

    It would be nice if the grid in Embrace would support this kind of thing.

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Sep 13, 2016 @ 09:58
    Biagio Paruolo
    0

    I've the same problem. The grid use a "section" or "row" for each "section". So if you have a layout with page with more

    it's a problem with the grid. I'm trying to customize the grid layout rended.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies