Multiple block sections on one page?

Hi, can I define multiple Block groups? for a page? Like a top block, section and a bottom section? Or do I need to split top and bottom into pages to allow for this?

Litium version: 7

Not really understand your question. I guess you want to have different groups of blocks in one page? That feature is called Block container.

Letā€™s take Home\Index.cshtml in Accelerator 7 for example, it renders only the ā€˜Mainā€™ block container. You can add another block container, ā€˜Bottomā€™ for example, by:

  1. Edit the Homeā€™s page template in the Settings, to add the ā€˜Bottomā€™ container.
  2. Modify the Homt\Index.cshtml file to render Blocks that belong to the ā€˜Bottomā€™ container:
    @Html.BlockContainer(Model.Blocks, ā€œBottomā€)

Can I view/edit block containers in the admin or do I need to add em all via ā€œnew BlockContainerDefinition()ā€ ?

You can edit them in back office

1 Like