Skip to content
Snippets Groups Projects
Carsten  Rose's avatar
Carsten Rose authored
* Recode the '_link' notation for download
* Add 'ZIP' as export format
* Add 'parameter' to wkhtmltopdf
* Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP' for detecting if there are download links on the page. This eleminates passing parameters through dozens of functions.
* Report/Columntype '_dDownload' broken!
Coding.md: described `download` from a coding point of view.
Manual.rst: Update '_link' to latest notation of 'download'.
download.php: implemented catching of 'Undefined index'. Added further exceptions.
Download.php: Added cache=off for downloading. Rename getFile() to getElement(). Make getElement() more generic. Add zipFiles(). Implement 'downloadMode' in doElements().
Html2Pdf.php: recode to new download notation. Parameter to wkhtmltopdf implemented.
Link.php: New TOKEN_* and NAME_DOWNLOAD_*, NAME_FILE. Move TOKEN_* to Constants.php. Will be used in Download.php too. Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'. Implemented BASE64 encoding of multiple 'U' and 'u'.
Report.php: Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'.
Sip.php: implement debugSip() to show Sip. New: base64 encoded parameter will be shown in clear.
Store.php: some functions missed keyword 'static'. getVar() and getStore automatically decode base64 parameter.
QuickFormQuery.php: Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'.
e10937b6
History

QFQ: Typo3 Extbase Extension

Version: see extension/ext_emconf.php

Installation

  • 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:

           mysqli::get_result (important),
           mysqli::fetch_all (nice to have)
    • Ubuntu:

          sudo apt-get install php5-mysqlnd
          sudo php5enmod mysqlnd
          sudo service apache2 restart
  • 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.

Bootstrap: include by TypoScript

page.includeCSS {

    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
}

page.includeJS {

    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
}

Usage

  • typo3conf/ext/qfq/documentation/_make/build/html/index.html