Skip to main content
Le panier est vide

How to use custom and overrided elements

 

Since version 1.31 of the Translate for Yootheme Pro plugin, you have the ability to create custom elements and override existing content elements.

Create or Override Elements

  • Create custom elements or override existing ones by modifying the JSON files in the appropriate directories (plugins/system/translateyoopro/custom/ for custom elements).
  • Ensure that your custom elements follow the required structure and specifications.

Example

Here's an example demonstrating how to override the section element:

1.Copy the elements JSON file (section.json) from the directory:

plugins/system/translateyoopro/elements/

2.Paste it into the directory:

plugins/system/translateyoopro/custom/

The original section.json file looks like this:

{
  "name": "section",
  "fields": [
    "image",
    "video",
    "title"
  ]
}

In this example, the ID needs to be added to the translation tab in Falang.

{
  "name": "section",
  "fields": [
    "image",
    "video",
    "title",
    "id"
  ]
}

The result of making these changes can be viewed in the Falang translation tab