heimrichhannot / contao-haste_plus
An extension for the contao haste module.
Installs: 31 104
Dependents: 41
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 4
Open Issues: 3
Type:contao-module
Requires
- php: ~7.0 || ^8.0
- codefog/contao-haste: ^4.0 || ^5.0
- contao/core-bundle: ^4.4.52 || ^4.13
- globalcitizen/php-iban: ~2.0 || ~3.0 || ~4.0
- hackzilla/password-generator: ^1.4
- heimrichhannot/contao-components: ^2.0
- phpfastcache/phpfastcache: ^7.0
- soundasleep/html2text: ^1.1
- tijsverkoyen/css-to-inline-styles: ^2.2
Suggests
- miljar/php-exif: Required for working with EXIF meta-data in version 0.6.3
- mpdf/mpdf: Required for PdfTemplate in version 6.1.*
- dev-master
- 1.16.4
- 1.16.3
- 1.16.2
- 1.16.1
- 1.16.0
- 1.15.14
- 1.15.13
- 1.15.12
- 1.15.11
- 1.15.10
- 1.15.9
- 1.15.8
- 1.15.7
- 1.15.6
- 1.15.5
- 1.15.4
- 1.15.3
- 1.15.2
- 1.15.1
- 1.15.0
- 1.14.1
- 1.14.0
- 1.13.3
- 1.13.2
- 1.13.1
- 1.13.0
- 1.12.5
- 1.12.4
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
- 1.11.2
- 1.11.1
- 1.11.0
- 1.10.1
- 1.10.0
- 1.9.14
- 1.9.13
- 1.9.12
- 1.9.11
- 1.9.10
- 1.9.9
- 1.9.8
- 1.9.7
- 1.9.6
- 1.9.5
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.102
- 1.6.101
- 1.6.100
- 1.6.99
- 1.6.98
- 1.6.97
- 1.6.96
- 1.6.95
- 1.6.94
- 1.6.93
- 1.6.92
- 1.6.91
- 1.6.90
- 1.6.89
- 1.6.88
- 1.6.87
- 1.6.86
- 1.6.85
- 1.6.84
- 1.6.83
- 1.6.82
- 1.6.81
- 1.6.80
- 1.6.79
- 1.6.78
- 1.6.77
- 1.6.76
- 1.6.75
- 1.6.74
- 1.6.73
- 1.6.72
- 1.6.71
- 1.6.70
- 1.6.69
- 1.6.68
- 1.6.67
- 1.6.66
- 1.6.65
- 1.6.64
- 1.6.63
- 1.6.62
- 1.6.61
- 1.6.60
- 1.6.59
- 1.6.58
- 1.6.57
- 1.6.56
- 1.6.55
- 1.6.54
- 1.6.53
- 1.6.52
- 1.6.51
- 1.6.50
- 1.6.49
- 1.6.48
- 1.6.47
- 1.6.46
- 1.6.45
- 1.6.44
- 1.6.43
- 1.6.42
- 1.6.41
- 1.6.40
- 1.6.39
- 1.6.38
- 1.6.37
- 1.6.36
- 1.6.35
- 1.6.34
- 1.6.33
- 1.6.32
- 1.6.31
- 1.6.30
- 1.6.29
- 1.6.28
- 1.6.27
- 1.6.26
- 1.6.25
- 1.6.24
- 1.6.23
- 1.6.22
- 1.6.21
- 1.6.20
- 1.6.19
- 1.6.18
- 1.6.17
- 1.6.16
- 1.6.15
- 1.6.14
- 1.6.13
- 1.6.12
- 1.6.11
- 1.6.10
- 1.6.9
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.44
- 1.4.43
- 1.4.42
- 1.4.41
- 1.4.40
- 1.4.39
- 1.4.38
- 1.4.37
- 1.4.36
- 1.4.35
- 1.4.34
- 1.4.33
- 1.4.32
- 1.4.31
- 1.4.30
- 1.4.29
- 1.4.28
- 1.4.27
- 1.4.26
- 1.4.25
- 1.4.24
- 1.4.23
- 1.4.22
- 1.4.21
- 1.4.20
- 1.4.19
- 1.4.18
- 1.4.17
- 1.4.16
- 1.4.15
- 1.4.14
- 1.4.13
- 1.4.12
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.0
- 1.3.47
- 1.3.46
- 1.3.45
- 1.3.44
- 1.3.43
- 1.3.42
- 1.3.41
- 1.3.40
- 1.3.39
- 1.3.38
- 1.3.37
- 1.3.36
- 1.3.35
- 1.3.34
- 1.3.33
- 1.3.32
- 1.3.31
- 1.3.30
- 1.3.29
- 1.3.28
- 1.3.27
- 1.3.26
- 1.3.25
- 1.3.24
- 1.3.23
- 1.3.22
- 1.3.21
- 1.3.20
- 1.3.19
- 1.3.18
- 1.3.17
- 1.3.16
- 1.3.15
- 1.3.14
- 1.3.13
- 1.3.12
- 1.3.11
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.11
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-haste5
- dev-php8
This package is auto-updated.
Last update: 2024-10-15 13:00:46 UTC
README
Please note:
This bundle is deprecated and not actively maintained anymore!
Haste Plus
Haste plus extends codefog/contao-haste as a collection of tools and classes to ease working with Contao.
Module Preview
Features
Cache
The PHP high-performance object caching system, phpfastcache is part of hast_plus. Currently only File-Caching is supported, but Pull-Request are welcome.
Example : FileCache
// MyClass.php
public function getSelectOptions(array $arrNewsArchives)
{
// select a unique key
$strCacheKey = 'my_select_options' . implode('_', $arrNewsArchives);
if(FileCache::getInstance()->isExisting($strCacheKey))
{
return FileCache::getInstance()->get($strCacheKey);
}
$arrItems = array();
// heavy sql queries or http-requests (just an example)
$objItems = \NewsModel::findPublishedByPids($arrNewsArchives);
if($objItems === null)
{
return $arrItems;
}
$arrItems = $objItems->fetchEach('headline');
FileCache::getInstance()->set($strCacheKey, $arrItems);
return $arrItems;
}
Security
Add security headers to http request (configurable in tl_settings)
- IFRAME Clickjacking Protection: X-Frame-Options: SAMEORIGIN
- Allow Origins Check: Access-Control-Allow-Origins & Access-Control-Allow-Headers
These options don't work anymore with Contao 4! Further Information
Input/Widget rgxp
The following regular expression can be used to validate widget input.
Utils
The following Classes and Methods are helpers that ease the working with Contao.
Google Maps
If you want to add google maps with ease that are build from dynamic entities, and not withing dlh_googlemaps backend module, use the following code.
# news_full.html5
<?php $objMap = new \HeimrichHannot\Haste\Map\GoogleMap(); ?>
<?php foreach ($this->venues as $arrVenue): ?>
<?php $objMap->setCenter($arrVenue['venueSingleCoords']); // lat and lon seperated by comma ?>
<?php $objMarker = new \HeimrichHannot\Haste\Map\GoogleMapMarker(); ?>
<?php $objMarker->setPosition($arrVenue['venueSingleCoords']); // lat and lon seperated by comma ?>
<?php $objMarker->setTitle($arrVenue['venueName']); // for full list of marker options see \HeimrichHannot\Haste\Map\GoogleMapMarker::prepare()?>
<?php $objMap->addMarker($objMarker); ?>
<?php endforeach; ?>
<?= $objMap->generate(
array(
'mapSize' => array('100%', '400px', ''),
'zoom' => 13,
)
// for full list of map options see \HeimrichHannot\Haste\Map\GoogleMap::prepare()
); ?>
Inserttags
Developer notes
- provide a minimum of 3 unit test for each test case of a util method
Notification Tokens
- Added
##form_submission_html_all##
, an equivalent to##formsubmission##
but for html format