Skip to content

Commit

Permalink
* change hook tx_double6 into JambageCom\Div2007\Hooks\Evaluation\Dou…
Browse files Browse the repository at this point in the history
…ble6

* new feature: error.configuration to show misconfiguration errors in the Front End
* change composer.json domain from typo3-ter to jambagecom because packageist is supported now.
  • Loading branch information
franzholz committed Feb 20, 2019
1 parent 7128890 commit e79b722
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 14 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2019-02-20 Franz Holzinger <[email protected]>
* change hook tx_double6 into JambageCom\Div2007\Hooks\Evaluation\Double6
* new feature: error.configuration to show misconfiguration errors in the Front End
* change composer.json domain from typo3-ter to jambagecom because packageist is supported now.

2018-12-21 Franz Holzinger <[email protected]>
* add status provider for TYPO3 reports module
* compatibility: Check in the front end and back end if $GLOBALS['TYPO3_CONF_VARS']['FE']['enableRecordRegistration'] has been set.
Expand Down
3 changes: 2 additions & 1 deletion Configuration/TCA/tt_products.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
'type' => 'input',
'size' => '10',
'max' => '20',
'eval' => 'trim,tx_double6',
'eval' => 'trim,JambageCom\\Div2007\\Hooks\\Evaluation\\Double6',
)
),
'usebydate' => array (
Expand Down Expand Up @@ -888,5 +888,6 @@




return $result;

2 changes: 1 addition & 1 deletion Configuration/TCA/tt_products_articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
'type' => 'input',
'size' => '10',
'max' => '20',
'eval' => 'trim,tx_double6',
'eval' => 'trim,JambageCom\\Div2007\\Hooks\\Evaluation\\Double6',
)
),
'color' => array (
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@
"cart"
],
"support": {
"issues": "http://jambage.com/kontakt/forum.html"
"issues": "https://jambage.com/kontakt/forum.html"
},
"homepage": "https://jambage.com",
"authors": [
{
"name": "Franz Holzinger",
"role": "Developer",
"homepage": "http://ttproducts.de"
"homepage": "https://ttproducts.de"
}
],
"license": [
"GPL-2.0+"
],
"require": {
"typo3/cms-core": ">=6.2.0,<8.99.99",
"typo3-ter/div2007": ">=1.10.3",
"typo3-ter/migration-core": ">=0.0.1",
"typo3-ter/table": ">=0.7.0",
"typo3-ter/tsparser": ">=0.2.5"
"jambagecom/div2007": ">=1.10.17",
"jambagecom/migration-core": ">=0.0.1",
"jambagecom/table": ">=0.7.0",
"jambagecom/tsparser": ">=0.2.5"
},
"suggest": {
"typo3-ter/addons-em": ">=0.2.1"
"jambagecom/addons-em": ">=0.2.1"
},
"autoload": {
"psr-4": {
Expand All @@ -58,7 +58,7 @@
},
"replace": {
"tt_products": "self.version",
"typo3-ter/tt-products": "self.version"
"jambagecom/tt-products": "self.version"
},
"extra": {
"typo3/cms": {
Expand Down
5 changes: 4 additions & 1 deletion control/class.tx_ttproducts_main.php
Original file line number Diff line number Diff line change
Expand Up @@ -846,11 +846,14 @@ public function &run ($pibaseClass, &$error_code, $content = '', $bRunAjax = fal
$rc = '';
}

if (!$this->conf['defaultSetup']) {
$showConfigurationError = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][TT_PRODUCTS_EXT]['error.']['configuration'];

if ($showConfigurationError && !$this->conf['defaultSetup']) {
$rc .= '<h>Error: The default tt_products setup is missing.</h>';
}

if (
$showConfigurationError &&
(
(
version_compare(TYPO3_version, '7.6.32', '>=') &&
Expand Down
2 changes: 2 additions & 0 deletions ext_conf_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ exclude.sys_products_orders = client_ip,date_of_birth,telephone,fax,ac_uid,cc_ui
cache.backend = 0
# cat=cache/enable; type=string; label=Cache Options for Server: Enter the cache options for the server.
cache.options.servers =
# cat=error/enable; type=boolean; label=Show Configuration Error Messages: Misconfiguration Error messages are shown in the Front End.
error.configuration = 1

4 changes: 2 additions & 2 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
'author' => 'Franz Holzinger',
'author_email' => '[email protected]',
'author_company' => 'jambage.com',
'version' => '2.9.4',
'version' => '2.9.5',
'constraints' => array(
'depends' => array(
'div2007' => '1.10.12-0.0.0',
'div2007' => '1.10.17-0.0.0',
'migration_core' => '0.0.0-0.99.99',
'php' => '5.6.0-7.2.99',
'table' => '0.7.0-0.0.0',
Expand Down
2 changes: 1 addition & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class_exists($emClass) &&

$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/mydashboard/class.tx_mydashboard_widgetmgm.php']['addWidget']['tt_products_latest'] = 'EXT:' . TT_PRODUCTS_EXT . '/widgets/class.tx_ttproducts_latest.php:tx_ttproducts_latest';

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['tx_double6'] = 'EXT:' . DIV2007_EXTkey . '/hooks/class.tx_div2007_hooks_eval.php';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals']['JambageCom\\Div2007\\Hooks\\Evaluation\\Double6'] = '';


if (isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']) && is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch'])) {
Expand Down

0 comments on commit e79b722

Please sign in to comment.