A
A
APELSINKA_GIRL2018-12-23 17:20:23
1C-Bitrix
APELSINKA_GIRL, 2018-12-23 17:20:23

What tactics do you follow when making layouts for Bitrix? What's faster?

I just started to make up for Bitrix, the company has got it that you need to immediately make up each component template in the right folder with separate style and js files.
It is not difficult to type header and footer in different places, because I don't see them often in the future.
But when it comes to component templates, it's easier for me to lay everything out in one place, and then put it into the right folders. Because it is often during layout that some similarities in styles are found out, and I create a template selector (SASS) for this rule. And in general, in principle, some optimization and refactoring ideas come to mind when you realize that there was something similar and it is easier to find it in the code when it is all in front of you.
How are you doing? Interested in time. What decision did your company come to?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2018-12-23
@APELSINKA_GIRL

You can work with Bitrix, the main thing is to know how. I have been working on it for more than a year, both from the front-end and back-end side, and I have made both simple landing pages and online stores with calculators on it, and there was even a news portal with news parsing from different sources. Of course, this system is not without flaws, like any other CMS. Many top companies in the Russian market work with Bitrix, and they make many different products from simple to complex. And there are many reasons for choosing Bitrix, this is an economic component and a lot of ready-made modules that allow you to implement customer requirements at a lower cost than developing from scratch on Laravel or Python, but also the choice of Bitrix is ​​not always justified in the case of simple sites.
Now I switched to layout on bootstrap 4 with its full customization for the desired design for the desired grids, etc., if necessary, I connect additional. script libraries depending on the project (in fact, it turned out to be a rather strong breakthrough in terms of quality and speed of coding). The output is a separate bootstrap style file and each page has its own required style file, so you can minimize the number of styles connected to the page (the savings are not very big). I build the project on gulp, in each component I almost never do my own styles separately. If the assembly is done on gulp, then it is not very convenient to lay everything out in separate folders, and to be honest, I don’t know how possible it will be (the gulp file will probably be very bloated).
It is also important to build the correct work with progers that will put your layout on the engine. Since when the edits on the layout go and if your project with minified files, then a lot of problems with the loss of time will climb, or the edits will be inserted in the form of crutches into separate files (even worse if in the same compressed ones, then your layout assembly goes to the forest) styles, or there will be returns to the layout designer, he will edit js and css and html, and the programmer will have to partially redo the work already done, or he will need to think about other solutions (in 99% of cases there are layout changes). You can use git for teamwork and smart file merging, for example, through phpstorm, there is the necessary functionality for this, or merge through the command line.
In any case, each company has its own process, and it is best to network and think it over together with the team and choose a scheme that will be more convenient for everyone (and then test and refine it ad infinitum)), and not just for one specialist. If the team has a person with a big I and a strong sense of importance), then the question arises whether it makes sense to work with such a person and spoil your nerves by adjusting to his work methods (perhaps they are far from the truth).
I think everything in a team should be based on trust and mutual understanding, then you can achieve very great success (a simple example is the fable "Swan, cancer and pike").
I recommend looking towards gulp or webpack, if you are not using them yet, this will help make your layout work much easier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question