Skip to content

Commit 769bd67

Browse files
[DOCS] Add optional configuration
1 parent f9b463f commit 769bd67

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

Readme.md

+18-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Canonical URL header for files
22

33
This TYPO3 extension adds canonical url headers to files (images, PDFs...),
4-
depending on the file storage the files are located in. Storages can be
4+
depending on the file storage the files are located in. Storages can be
55
linked to specific sites (respectively site configurations), so all files
6-
located in that storage are delivered with an additional canonical header
6+
located in that storage are delivered with an additional canonical header
77
pointing to the domain of the according site.
88

99
Let's say a TYPO3 instance serves two domains, [example.at](https://example.at)
10-
and [example.de](https://example.de), wich have two file storages defined
11-
respectively, `storage-at` and `storage-de`. Then a file provided for
12-
download on domain [example.at](https://example.at) but physically located in
10+
and [example.de](https://example.de), wich have two file storages defined
11+
respectively, `storage-at` and `storage-de`. Then a file provided for
12+
download on domain [example.at](https://example.at) but physically located in
1313
`storage-de` will be delivered with the canonical header
1414
`https://example.de/fileadmin/....`
1515

@@ -31,8 +31,8 @@ and set the field `Site` in the tab `Canonical Files` accordingly. All files
3131
stored within such a file storage will get the base, respectively base
3232
variant, of this site configuration as canonical header.
3333

34-
To make this happen, files have to be routed through TYPO3: Add the
35-
following lines to your project's .htaccess file (amend
34+
To make this happen, files have to be routed through TYPO3: Add the
35+
following lines to your project's .htaccess file (amend
3636
accordingly):
3737

3838
```
@@ -41,6 +41,17 @@ RewriteCond %{REQUEST_FILENAME} \.(pdf|doc|docx|xls|xlsx|ppt|pptx)$
4141
RewriteRule ^.*$ %{ENV:CWD}index.php [QSA,L]
4242
```
4343

44+
### Optional
45+
46+
It makes sense to prevent editors to upload files directly from file reference
47+
fields within backend forms. Add this to your TSconfig to apply it globally:
48+
```
49+
setup.override {
50+
edit_docModuleUpload = 0
51+
}
52+
setup.fields.edit_docModuleUpload.disabled = 1
53+
```
54+
4455
## Legal
4556

4657
### License

0 commit comments

Comments
 (0)