Project

General

Profile

T3 V10 Best Practice » History » Version 5

Enis Nuredini, 05.03.2023 16:30

1 1 Enis Nuredini
h1. T3 V10 Best Practice
2
3
h2. Redirect BaseUrl to Home
4
5
Site Management > Redirects > Add redirect
6
Source Domain = webwork20a.math.uzh.ch
7
Source Path = /medtool/dev10/
8
Force SSL Redirect = Enabled
9
Status Code HTTP Header = 307
10
11
h2. Forwarding (Page not Found/Not accessible)
12
13
Typo3 Site Configuration:
14 2 Enis Nuredini
15 1 Enis Nuredini
Site Management > Sites > Error Handling > [errorCode] = 403 / [errorHandler] = Page / [errorContentSource] = https://webwork20a.math.uzh.ch/medtool/dev10/login
16 3 Enis Nuredini
Specific page must be given. Using BaseUrl doesnt work.
17 4 Enis Nuredini
18
h2. PDF emptyTemplate
19
20
The empty template setup content from T3 V9 and earlier doesn't work in 10 and higher anymore. Instead following setup can be used:
21
<pre>
22
page = PAGE
23
page.typeNum = 0
24
page.includeCSS {
25
  10 = typo3conf/ext/qfq/Resources/Public/Css/qfq-letter.css
26
}
27
28
// Grant access to any logged in user or specific development IPs
29
[loginUser('*') or ip('127.0.0.1')] 
30
  page.10 < styles.content.get
31
[else]
32
  page.10 = TEXT
33
  page.10.value = access forbidden
34
[global]
35
</pre>
36 5 Enis Nuredini
Attention: Its possible that the filename font-awesome.min.css from the UZH-CD Extension makes problems with wkhtmltopdf. The file should be copied with the new name fontawesome.min.css. This resolved the problem.