+

Search Tips   |   Advanced Search

Specify profile files


Define which modules are used to render a page. Profiles specify which modules are loaded on a page or whether they are deferred to after a page loads.

The list of modules is determined by:

The list of available profiles within a theme is determined by loading all files in the folder defined by the resourceaggregation.profiles.default theme metadata. Ithat metadata is not defined, the profiles/ default folder is scanned for profiles.

Important: Only profile.json files are allowed in these folders.


The profile format

The profile files must be valid JSON files. The following sample shows the properties:

{
   "moduleIDs" : ["moduleID_1", "moduleID_2", "moduleID_3"],    "titles": [{
        "value": "title_en",     "lang": "en"
             },         {
        "value": "title_de",     "lang": "de"
             }], 
   "descriptions": [{
        "value": "desc_en",     "lang": "en"
             },         {
        "value": "desc_de",     "lang": "de"
             }]
}


Parent: The module framework