diff --git a/README.md b/README.md
index e3e46df..aa9e32a 100644
--- a/README.md
+++ b/README.md
@@ -163,6 +163,10 @@ The recommendation list can display published (and verified) recommendations fro
Items per page
Number of recommendations per page - Activates pagination
+
+ Custom label
+ Allows customizing the translation to for the redirect link
+
Meta fields
Here you can select meta fields to display
@@ -175,6 +179,10 @@ The recommendation list can display published (and verified) recommendations fro
Module template
The modules template that is being used
+
+ Use dialog popup
+ Does not output the redirect link and embeds a dialog box instead. The `js_recommendation` template has to be included in the page layout
+
Image settings
You have the possibility to add pictures to your recommendations. These are the image settings for them
@@ -203,6 +211,14 @@ The recommendation list can display published (and verified) recommendations fro
Recommendation archives
Here you can select one or more archives to read recommendations from
+
+ Overview page
+ Adds the overview page to the template to not use ``javascript:history.go(-1)`` anymore
+
+
+ Custom label
+ Allows customizing the translation for the overview link
+
Meta fields
Here you can select meta fields to display
diff --git a/composer.json b/composer.json
index f6a8420..e53af48 100644
--- a/composer.json
+++ b/composer.json
@@ -35,8 +35,8 @@
"contao/manager-plugin": "^2.3.1",
"contao/test-case": "^5.1",
"phpunit/phpunit": "^9.5",
- "symfony/http-client": "^5.4 || ^6.0",
- "symfony/phpunit-bridge": "^5.4 || ^6.0"
+ "symfony/http-client": "^5.4 || ^6.0 || ^7.0",
+ "symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0"
},
"conflict": {
"contao/core": "*",
@@ -61,7 +61,7 @@
},
"extra": {
"branch-alias": {
- "dev-main": "1.4.x-dev"
+ "dev-main": "1.5.x-dev"
},
"contao-manager-plugin": "Oveleon\\ContaoRecommendationBundle\\ContaoManager\\Plugin"
},
diff --git a/contao/dca/tl_module.php b/contao/dca/tl_module.php
index aa36199..b9eef4d 100644
--- a/contao/dca/tl_module.php
+++ b/contao/dca/tl_module.php
@@ -20,8 +20,8 @@
$GLOBALS['TL_DCA']['tl_module']['palettes']['__selector__'][] = 'recommendation_activate';
// Add palettes to tl_module
-$GLOBALS['TL_DCA']['tl_module']['palettes']['recommendationlist'] = '{title_legend},name,headline,type;{config_legend},recommendation_archives,recommendation_readerModule,recommendation_minRating,recommendation_featured,recommendation_order,numberOfItems,perPage;{template_legend:hide},recommendation_metaFields,recommendation_template,customTpl;{image_legend:hide},imgSize,recommendation_externalSize;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
-$GLOBALS['TL_DCA']['tl_module']['palettes']['recommendationreader'] = '{title_legend},name,headline,type;{config_legend},recommendation_archives;{template_legend:hide},recommendation_metaFields,recommendation_template,customTpl;{image_legend:hide},imgSize,recommendation_externalSize;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
+$GLOBALS['TL_DCA']['tl_module']['palettes']['recommendationlist'] = '{title_legend},name,headline,type;{config_legend},recommendation_archives,recommendation_readerModule,recommendation_minRating,recommendation_featured,recommendation_order,numberOfItems,perPage,customLabel;{template_legend:hide},recommendation_metaFields,recommendation_template,customTpl,recommendation_useDialog;{image_legend:hide},imgSize,recommendation_externalSize;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
+$GLOBALS['TL_DCA']['tl_module']['palettes']['recommendationreader'] = '{title_legend},name,headline,type;{config_legend},recommendation_archives,overviewPage,customLabel;{template_legend:hide},recommendation_metaFields,recommendation_template,customTpl;{image_legend:hide},imgSize,recommendation_externalSize;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
$GLOBALS['TL_DCA']['tl_module']['palettes']['recommendationform'] = '{title_legend},name,headline,type;{config_legend},recommendation_archive,recommendation_optionalFormFields,recommendation_customFieldLabel,recommendation_notify,recommendation_moderate,recommendation_disableCaptcha;{privacy_legend},recommendation_privacyText;{redirect_legend:hide},jumpTo;{email_legend:hide},recommendation_activate;{template_legend:hide},customTpl;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
$GLOBALS['TL_DCA']['tl_module']['subpalettes']['recommendation_activate'] = 'recommendation_activateJumpTo,recommendation_activateText';
@@ -72,6 +72,14 @@
'sql' => "varchar(255) NOT NULL default ''"
];
+$GLOBALS['TL_DCA']['tl_module']['fields']['recommendation_useDialog'] = [
+ 'exclude' => true,
+ 'filter' => true,
+ 'inputType' => 'checkbox',
+ 'eval' => ['submitOnChange'=>true, 'tl_class'=>'clr'],
+ 'sql' => "char(1) NOT NULL default ''"
+];
+
$GLOBALS['TL_DCA']['tl_module']['fields']['recommendation_order'] = [
'exclude' => true,
'inputType' => 'select',
@@ -178,14 +186,6 @@
'sql' => "varchar(64) NOT NULL default ''"
];
-$GLOBALS['TL_DCA']['tl_module']['fields']['recommendation_template'] = [
- 'exclude' => true,
- 'inputType' => 'select',
- 'options_callback' => static fn () => Controller::getTemplateGroup('recommendation_'),
- 'eval' => ['includeBlankOption' => true, 'chosen' => true, 'tl_class'=>'w50'],
- 'sql' => "varchar(64) NOT NULL default ''"
-];
-
$GLOBALS['TL_DCA']['tl_module']['fields']['recommendation_externalSize'] = [
'inputType' => 'text',
'eval' => ['multiple'=>true, 'size'=>2, 'rgxp'=>'natural', 'nospace'=>true, 'tl_class'=>'w50'],
diff --git a/contao/languages/de/default.xlf b/contao/languages/de/default.xlf
index 97241b7..5da1932 100644
--- a/contao/languages/de/default.xlf
+++ b/contao/languages/de/default.xlf
@@ -5,6 +5,10 @@
Currently there are no recommendations.
Zurzeit sind keine Bewertungen vorhanden.
+
+ Read the recommendation: %s
+ Die Bewertung lesen: %s
+