Tell me how to do it right : I have a page with a custom structure. This is a page that displays data (multilanguage) for the project in the form of tabs (in which text with pictures), for this a separate controller was created which gives a block with content + there is also a separate page on which the project gallery is displayed, and it would also be nice to edit her through admin.

Now the data on the page is pulled up from the "language files", but the problem is that the manager will edit and edit this data, and in php files it will not exactly climb, you need to be given the opportunity to edit through the admin area.

Standard editors in the opencart admin panel cut all tags or at least arbitrary style classes. Is it possible to edit variable style files in the admin panel (hardly), or there is some solution + I have a lot of different text (information) blocks (with an arbitrary html structure) scattered across the pages, it would not be bad for them edit through admin and not via files (multilingual required).

    1 answer 1

    I work with OpenCard2 and, judging by your question, it seems that either you have chosen the wrong kmc or you do not quite understand the essence of the localization of the project.

    Localization files are responsible for the translation of the topic. No more and no less. The entire standard set of dialogs, button texts, static content is all set there. Those. localization that does not undergo major changes over time.

    We often come to refactoring projects on OC2, in which people manage to cram whole pieces of a template with html markup into localization files. This is wrecking in the literal sense.

    If you need the ability to edit blocks of information, you should use modules from the standard functional set of this system. For example, the module "HTML Content", which allows you to create blocks based on html-markup. And then manage the output of the module instance in those places of the template where it is needed. In addition, there are many third-party modules from the category "Do not teach the admin area, but put this here!"

    OC2 standard functionality allows you to flexibly manage content, its output, distribution and localization. Get acquainted with the documentation and do not chop the pattern on which you sit)))