Creating and Editing Content
The content of the ECTOR theme is centrally managed through the Ector Configurator
module. This module allows you to quickly modify your site's content, both static and dynamic, through an intuitive graphical interface that makes editing JSON files easy.
How It Works
At the core of the configuration is a JSON Builder, which contains all the information and instructions to be executed within the FrontControllers.
Configuration Structure
Language and Revision:
- Language: Specifies the language for which the configuration is valid.
- Revision: Allows rollback of changes in case of errors, ensuring safe configuration management.
JSON Object:
- Controller: At the first level of the JSON, we find the specific controllers for which the configuration is valid. With the base theme setup, you will find at least:
IndexController
CategoryController
All
Each configuration set at the controller level is valid only within that specific controller. For global settings, such as the menu, you can use the
All
controller.- Controller: At the first level of the JSON, we find the specific controllers for which the configuration is valid. With the base theme setup, you will find at least:
Configuration Caching:
- The configuration is interpreted and cached by ECTOR, avoiding recalculating the payload at runtime and improving site performance.
Editing the Configuration
Within the Ector Configurator
module, you can easily modify the base theme configuration:
Access Ector Configurator:
- Open the
Ector Configurator
module in the Prestashop back office.
- Open the
Navigate the Configuration:
- Use the graphical interface to navigate the JSON structure and make the necessary changes.
Save and Apply Changes:
- Once the changes are made, save the configuration and verify that the changes have been correctly applied in the front office.
Special Keywords
There are special keywords that, when used as configuration values, are converted into other specific values:
{{base}}
- The keyword
{{base}}
is automatically converted into the site's base URL, facilitating the management of links and related resources.
Conclusion
The Ector Configurator
module makes managing and modifying the content of the ECTOR theme simple and fast. Using the graphical interface and the JSON Builder, you can make dynamic and static changes to your site, maintaining complete control over configurations and ensuring effective and secure content management.