mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2025-03-12 08:48:18 -07:00
Add Explanation that there are two ways to configure
This commit is contained in:
parent
20758239d1
commit
7fc77e10d0
1 changed files with 2 additions and 2 deletions
|
@ -57,6 +57,8 @@ git pull
|
|||
|
||||
To use this module, add a configuration to the modules array in the `config/config.js` file.
|
||||
|
||||
There are two ways to configure this module: Using the module names or using class names. The module name based configuration is easier to use, but has the limitations that you can only use one instance of each module. So if you want to use multiple instances of the same module, you have to use the class based configuration.
|
||||
|
||||
*Note*: Some of the module names used in the following examples are fictitious.
|
||||
|
||||
### Module name based configuration
|
||||
|
@ -93,8 +95,6 @@ The first element of the array is the first page, the second element is the seco
|
|||
},
|
||||
```
|
||||
|
||||
*Note:* This way you can only use one instance of each module. If you want to use multiple instances of the same module, you have to use the class based configuration.
|
||||
|
||||
### Class based configuration
|
||||
|
||||
Instead of using the module name, you can also use a class name for each page. This way you can have multiple instances of the same module on different pages.
|
||||
|
|
Loading…
Reference in a new issue