G
G
grinch_asd2019-01-09 15:44:11
CMS
grinch_asd, 2019-01-09 15:44:11

How would you accomplish this task?

Hello.
There is a task. Make a website with 100+ pages of services. Each page has template blocks, but no template layout/presence of blocks. The number of blocks per page is from 2 to 10. I.e. each page is unique.
1 task condition.
The site is made on Bitrix, and the content manager fills the pages for 40 hryvnia, of course, who has never understood Bitrix, html, css, etc. In this situation, in my opinion, the most optimal solution is to go through binding to elements. Those. spawn templates and let it create an element separately for each page when filling the page, and pull it to the main element. The disadvantage of this method is that if someone is impatient, the content creator will not be able to create 2 identical blocks on the page, if this is not provided in advance. A large number of ib. The advantage of this method is that the content developer has minimal chances to make a mistake and, as a result, the content developer does not pull the developer on every little thing.
The question is - do you see the best solution in these conditions?
2 task condition
The site is made on Bitrix, and it is filled in by a content specialist who is familiar with html, css, bitrix. Here, as for me, the best solution is to go through predefined classes for blocks. Those. give the content creator freedom - let him fill in the page in the Detailed description, and assign classes to the necessary blocks through gui bits. I don't see any cons in this case. Of the advantages - the absence of unnecessary IB, complete freedom in filling content.
The question is - do you see any disadvantages or the best solution in these conditions?
3 condition of the task
The site is not made on Bitrix.
The question is , what is the best way to accomplish this task?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2019-01-09
@grinch_asd

Correctly noted in the comments that it all depends on the uniqueness and expected flexibility.
I always try to start from the rule "make the most convenient editing for the dumbest caterer" in the first place. Based on this, in such tasks I acted as follows.
We need the content manager to be able to create a new page on their own. This means that there will be 1 infoblock, and the page is an element of the infoblock. Those. when creating a page, it will automatically receive a dynamic address.
All information in the blocks on the page will be displayed through the properties of the infoblock. They will need to be nicely grouped. Each property group is a separate block. Each such group will have 2 mandatory properties: block activity and block sorting. The activity checkbox will be responsible for showing the block on the page. And sorting will indicate the position of the block relative to other blocks (ie, set the order of the blocks). The remaining properties in the group are individual for each block.
All you have to do is place a complex News component on the physical page (to enable CNC) and rewrite the detail page template (implement property grouping, block output and sorting).
The result is a small page builder that even a child can handle.

E
eternalfire, 2019-01-09
@eternalfire

you can implement an analogue of shortcodes, as is done in WordPress, and pass data for the block in their parameters

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question