Templates Configuration File
Description of the Configuration File: Config.json
Last updated
Description of the Configuration File: Config.json
Last updated
The 4EVERLAND Template Center is a codeless website building tool provided for all users. By simply selecting a desired template from the dashboard and filling in the specified parameters, users can easily construct their own website with the configuration file of the template serving as the defining document for these parameters.
For example:
The web3 page serves as a convenient template for aggregating user's social information. When creating the template, users need only input their social media links, such as Twitter, Medium, YouTube, etc, in order to establish their own customized web3 page website. This website will display the user's activity on these social media platforms.Consequently, the template code submitted by web3 page developers must include a configuration file that specifies the user's required input social media links, and preserves the user's inputted results for use in the code at the appropriate locations.
In order to write a configuration file that allows users to fill in reserved parameters in a visual form when utilizing the template in the dashboard, it is necessary to refer to the configuration file writing standards provided in this document.Only configuration files that adhere to these standards will be approved for use.
The configuration file should be named config.json
, as follows (we recommend placing it in the root or public directory).
All configurable items will be displayed in the dashboard in the order in which they were written in the JSON file. Currently, only three types of configurable items are supported: text input boxes, tables, and sliding selectors.All configuration items are written in sequence in a "config" array in JSON format.
Text input box
Example: Configurable item banner
The results are presented in the dashboard as follows
Textarea
Textarea can be used when there is a lot of text to be entered.
Example
The results are presented in the dashboard as follows
Tables
The table configuration option supports any number of columns, and you may also limit the maximum number of rows that the template user can add.
Example: a table with two columns
The results are presented in the dashboard as follows
Drop-down selector
Example
The results are presented in the dashboard as follows
Sliding selectors
Example:
The results are presented in the dashboard as follows
Configuration Item Classification:
If you have a large number of configuration items, it is recommended to categorize them according to different scenarios. This can improve the user's reading experience when filling in parameters. You only need to add a "tag" item to the configuration options.Example:
The results are presented in the dashboard as follows