Using Platform Config Keys in Extensions
This manual explains how to create an extension that uses platform config keys and how these settings are applied during installation.
Follow the steps below to generate and install the extension.
1) Open the Extension Generator Tool
Go to the extension generator tool at:
https://generator.tllab.co.uk/
2) Complete the General Tab
- Fill in all required fields under the General tab.
- When finished, click Next.
3) Enable Platform Config Keys
- Under the Common tab, enable the Use platform config keys option.
- Click Next to continue.
4) Generate the Extension
1. In the Advanced tab, click the Generate button.
- A ZIP file containing the extension will be created.
5) Review the Setup File (Optional)
If you open the generated Setup file, you will notice that the only difference between platform config keys and standard config keys is one additional line included for platform config keys.
6) Unpack the ZIP File
Unpack the generated ZIP file into the required directory on your server.
7) Install the Extension
1. Log in to the admin area of your website.
2. Install the extension as usual.
8) Review Platform Settings During Installation
During installation, you will see that platform settings are automatically applied to the extension.
These settings include information related to the config keys.
If your website has multiple platforms, the platform-specific settings will be applied separately to each one.