Update modules.md

This commit is contained in:
Dennis Eichhorn 2017-11-07 16:13:11 +01:00 committed by GitHub
parent 239f8f3e23
commit 257b60cb08

View File

@ -222,7 +222,7 @@ The `info.json` file contains general module information used during installatio
"load": [ "load": [
{ {
"pid": [ "pid": [
"{SHA1_Uri_hash}" "{Request_path}"
], ],
"type": 4, "type": 4,
"for": "Content", "for": "Content",
@ -231,7 +231,7 @@ The `info.json` file contains general module information used during installatio
}, },
{ {
"pid": [ "pid": [
"{SHA1_Uri_hash}" "{Request_path}"
], ],
"type": 5, "type": 5,
"from": "{UniqueModuleId_STR}", "from": "{UniqueModuleId_STR}",
@ -240,7 +240,7 @@ The `info.json` file contains general module information used during installatio
}, },
{ {
"pid": [ "pid": [
"{SHA1_Uri_hash}" "{Request_path}"
], ],
"type": 5, "type": 5,
"for": "Content", "for": "Content",
@ -294,10 +294,10 @@ The `load` category contains all the files (controllers, language files) that ne
#### PID #### PID
The `pid` (page identifier) is a sha1 hash of the uri where the `file` is supposed to be loaded. The pid needs to be defined in the following matter (e.g. http://127.0.0.1/en/app/path/sub&some=thing): The `pid` (page identifier) is the request path. The pid needs to be defined in the following matter (e.g. http://127.0.0.1/en/app/path/sub&some=thing):
```php ```json
sha1('apppath'); '/app/path/sub'
``` ```
The result of the example hash would result in loading all specified files for requests containing '/app/path'. This also includes requests to any subdirectories. The result of the example hash would result in loading all specified files for requests containing '/app/path'. This also includes requests to any subdirectories.