Answer the question
In order to leave comments, you need to log in
How do you set identifiers for internal pages if the layout is written under the CMS?
Hello colleagues!
Please share your experience on how you write modifiers and work with modified blocks.
SUBJECT: there is a multi-page template in which, let's say, there is a certain div.container (wrapper), which is on each page, but on the inside it, let's say, has a border or background.
In this case, I write something like this
<div class="container"> - основной вид</div>
<div class="container container--inner flex"></div> подвид, для внутренних страниц + родитель для ФБ итемов
Answer the question
In order to leave comments, you need to log in
cms assembles a page from blocks separately,
but what if you need to assemble another page based on your layout?
nesting is generally bad, the behavior of the block depending on the wrapper is also bad.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question