Adding sections in the backend

hi there
i could not find the information online but is there a way, if you build your own theme, to add sections in the backend to have a “completely” new page template then in the frontend?
sometimes you want to have 3 rows sometimes only 2?!

currently i code this in the theme files like:

    <div class="container">
        <div class="row">
        <div class="col-md-6 col-sm-6 col-xs-12">
            <?php $a = new Area('Content 2 links');
            $a->display($c); ?>
        </div>
        <div class="col-md-6 col-sm-6 col-xs-12">
            <?php $a = new Area('Content 2 rechts');
            $a->display($c); ?>
        </div>
        </div>
    </div>

is there no one in the forum who has an idea?
or is the question just stupid? :smiley:

this is a simple function of ConcreteCMS.

You just create new template files in your theme and then apply them to the page.
https://documentation.concretecms.org/developers/pages-themes/designing-for-concrete5/building-a-concrete5-theme/converting-html-template-concrete-cms-theme

Another way to look at this is to use page layouts. Click any area and select add layout. These can be really powerful and you can then code this in the theme if needs be.
https://documentation.concretecms.org/developers/pages-themes/designing-for-concrete5/adding-grid-support-to-your-theme/enabling-grid-support-areas-and-layouts

thank you very much! i will try it.
but it’s “only” possible to add containers not sections in different color, right?
do you setup your templates like this?
thank you very much!

I would create page templates for structure and then block temples for blocks so for example.

If you wanted a content block to have a grey background you could either add that in the block styling when you click a block in edit mode or create a block temple and apply it in that style dialogue box.

you are somekind of a superstar!
thank you very much!