Download the PHP package getdesigned/gd-cookieconsent without Composer
On this page you can find all versions of the php package getdesigned/gd-cookieconsent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download getdesigned/gd-cookieconsent
More information about getdesigned/gd-cookieconsent
Files in getdesigned/gd-cookieconsent
Package gd-cookieconsent
Short Description Getdesigned Cookie Consent extension
License GPL-2.0-or-later
Informations about the package gd-cookieconsent
TYPO3 Extension gd_cookieconsent
1 Features
- Easy integrable cookie consent for your TYPO3 installation
- Configure your cookie consent settings inside TYPO3 Backend (also possible for editors)
- Fully customizable due to fluid template engine
- Takes advantage of GDCC JS library
2 Usage
2.1 Installation
Installation using Composer
The recommended way to install the extension is using Composer.
Run the following command within your Composer based TYPO3 project:
Installation as extension from TYPO3 Extension Repository (TER)
Download and install the extension with the extension manager module.
2.2 Setup
1) Run npm install
or yarn install
or download JS dependencies from GitHub and place them wherever you want. There is also a copy of them placed at Resources/Public/Scripts
if you will use TWB style template.
2) Include the static TypoScript of the extension. Optional: If your templates are based on Twitter Bootstrap, add the TWB styles as well to get optimized CSS styles and default JS behaviour.
3) If you are not using TWB style template, make sure you have included all necessary JS libraries (jQuery > 3, fg-cookie, gdcc-js). Those libraries will be delivered via npm dependency. Take a look into package.json
.
4) If you are not using TWB style template, initialize GDCC in your JavaScript once the DOM is ready. gdcc = new GdCookieConsent(debugMode);
. The parameter debugMode
is a boolean and triggers debug output of GDCC.
5) Create some cookie category-, script- and cookie records on a sysfolder.
6) Define sysfolder as storage pid in Typoscript constants – $plugin.tx_gdcookieconsent.settings.storagePid
3 Useful general information
- The cookie consent itself is places per default at
page.5
. If this key is already in use, you can referencelib.cookieConsent
at any location inside yourpage
object. - Scripts, handled by this extension (script records with given script-content e.g. Google Analytics code) are placed at
page.headerData.5
. If this key is already in use, you can referencelib.cookieScripts
at any location insidepage.headerData
orpage.footerData
. - It is possible to override the fluid templates via
$plugin.tx_gdcookieconsent.view.
settings in Typoscript constants.
4 Handling media (eg. YouTube videos)
TODO