A
A
ashfedor2021-11-09 21:10:58
OctoberCMS
ashfedor, 2021-11-09 21:10:58

How to add multilingualism to theme.yaml WinterCms (OctoberCms) theme configuration file?

Hello! Decided to make a site on WinterCMS (free October version)
The main page is planned to be a landing page. With a slider, displaying categories, etc.
I found a solution how to add the necessary fields through the theme.yaml file
as an example

form:
  tabs:
    fields:
      logo_text:
        label: Компания
        span: auto
        comment: Введите название вашей компании
        tab: Основные
      logo_image:
        label: Логотип
        type: mediafinder
        mode: image
        tab: Основные
        span: auto
      phone:
        label: Телефон
        span: auto
        tab: Основные
      address:
        label: Адрес
        span: auto
        tab: Основные

But the problem is that the site is multilingual in two languages.
installed the translate plugin, but it creates translation fields for static pages and, for example, if you put a blog.
Can someone tell me how to implement translation fields through theme.yaml
or maybe a better solution.
I need the client to be able to edit all landing fields on one page.
On WordPress, this was easily solved with custom fields, but they decided to move away from it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
ashfedor, 2021-12-03
@ashfedor

Found the answer, maybe someone will come in handy
https://octoclub.ru/d/41-rainlab-translate-%D0%BF%...

R
Rostislav, 2021-12-16
@boarworm

Winter is a copy of October CMS. There is a free version of October CMS called v1.1. There is a paid v2. Personally, I would not make a site on Winter, but you yourself see, the guys who made a copy at any time can get tired of doing it. And Winter is now using the October marketplace. There will be sadness when they are denied access. If you want to learn more about Winter, October, look for this whole story OctoberCMS in the cart.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question