README.md 2.14 KB
Newer Older
1
2
3
4
5
QFQ: Typo3 Extbase Extension
===============================

Version: see `extension/ext_emconf.php`

6
7
8
9
10
11
12
13
14
15
Download
--------

See: https://w3.math.uzh.ch/qfq/

 * release - Stable
 * nightly - Development version
 * snapshot - Current, development version 


16
17
Installation
------------
Carsten  Rose's avatar
Carsten Rose committed
18
19
20
21
* Ubuntu < 16.04: Take care that the `php5-mysqlnd` driver is installed:
  * See also: http://dev.mysql.com/downloads/connector/php-mysqlnd/
  * If there is a error message "Call to undefined method mysqli_stmt::get_result()", `php5-mysqlnd` is not installed or not active.
  * The following functions are used and are only available with the native driver:
Carsten  Rose's avatar
Carsten Rose committed
22

Carsten  Rose's avatar
Carsten Rose committed
23
    ```bash  
24
25
         mysqli::get_result (important),
         mysqli::fetch_all (nice to have)
Carsten  Rose's avatar
Carsten Rose committed
26
    ```
Carsten  Rose's avatar
Carsten Rose committed
27

Carsten  Rose's avatar
Carsten Rose committed
28
  * Ubuntu:
29

Carsten  Rose's avatar
Carsten Rose committed
30
    ```bash
Carsten  Rose's avatar
Carsten Rose committed
31
32
33
        sudo apt-get install php5-mysqlnd
        sudo php5enmod mysqlnd
        sudo service apache2 restart
Carsten  Rose's avatar
Carsten Rose committed
34
    ```
35
36
37
38
39
40
41

* Install extension as regular.
* In `typo3conf/ext/qfq` rename `config.examle.ini` to `config.ini`.
* Fill `config.ini` with valid database credentials.
* Insert a new content record of type `qfq`.
* As a test, insert: `sql1 = SELECT 'Hello World'`. View the page in browser.

42
43
Bootstrap: include by TypoScript
---------
Carsten  Rose's avatar
Carsten Rose committed
44
45

```script
46
47
page.includeCSS {

Carsten  Rose's avatar
Carsten Rose committed
48
49
50
51
52
    file1 = typo3conf/ext/qfq/Resources/Public/Css/bootstrap.min.css
    file2 = typo3conf/ext/qfq/Resources/Public/Css/bootstrap-theme.min.css
    file3 = typo3conf/ext/qfq/Resources/Public/Css/jqx.base.css
    file4 = typo3conf/ext/qfq/Resources/Public/Css/jqx.bootstrap.css
    file5 = typo3conf/ext/qfq/Resources/Public/Css/qfq-bs.css
53
54
55
56
}

page.includeJS {

Carsten  Rose's avatar
Carsten Rose committed
57
58
59
60
61
62
63
    file1 = typo3conf/ext/qfq/Resources/Public/JavaScript/jquery.min.js
    file2 = typo3conf/ext/qfq/Resources/Public/JavaScript/bootstrap.min.js
    file3 = typo3conf/ext/qfq/Resources/Public/JavaScript/validator.min.js
    file4 = typo3conf/ext/qfq/Resources/Public/JavaScript/jqx-all.js
    file4 = typo3conf/ext/qfq/Resources/Public/JavaScript/tinymce.min.js
    file5 = typo3conf/ext/qfq/Resources/Public/JavaScript/EventEmitter.min.js
    file6 = typo3conf/ext/qfq/Resources/Public/JavaScript/qfq.min.js
64
}
Carsten  Rose's avatar
Carsten Rose committed
65
```
66

67
68
Usage
-----
69
* typo3conf/ext/qfq/documentation/_make/build/html/index.html
70