-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added default image for recommendation without own image and redirect…
… issue
- Loading branch information
Showing
12 changed files
with
161 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Oveleon Recommendation Bundle. | ||
* | ||
* (c) https://www.oveleon.de/ | ||
*/ | ||
|
||
$GLOBALS['TL_DCA']['tl_recommendation_settings'] = array | ||
( | ||
|
||
// Config | ||
'config' => array | ||
( | ||
'dataContainer' => 'File', | ||
'closed' => true | ||
), | ||
|
||
// Palettes | ||
'palettes' => array | ||
( | ||
'default' => '{image_legend},recommendationDefaultImage;' | ||
), | ||
|
||
// Fields | ||
'fields' => array | ||
( | ||
'recommendationDefaultImage' => array | ||
( | ||
'label' => &$GLOBALS['TL_LANG']['tl_recommendation_settings']['recommendationDefaultImage'], | ||
'inputType' => 'fileTree', | ||
'eval' => array('fieldType'=>'radio', 'filesOnly'=>true, 'isGallery'=>true, 'extensions'=>Config::get('validImageTypes'), 'tl_class'=>'clr') | ||
) | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/Resources/contao/languages/de/tl_recommendation_settings.xlf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" ?><xliff version="1.1"> | ||
<file datatype="php" original="src/Resources/contao/languages/en/tl_recommendation_settings.php" source-language="en" target-language="de"> | ||
<body> | ||
<trans-unit id="tl_recommendation_settings.recommendationDefaultImage.0"> | ||
<source>Default image</source> | ||
<target>Standard-Bild</target> | ||
</trans-unit> | ||
<trans-unit id="tl_recommendation_settings.recommendationDefaultImage.1"> | ||
<source>The default image is displayed for recommendations that have not set their own image.</source> | ||
<target>Das Standard-Bild wird bei Bewertungen angezeigt, die keinen eigenes Bild gesetzt haben.</target> | ||
</trans-unit># | ||
<trans-unit id="tl_recommendation_settings.image_legend"> | ||
<source>Image settings</source> | ||
<target>Bild-Einstellungen</target> | ||
</trans-unit> | ||
</body> | ||
</file> | ||
</xliff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Resources/contao/templates/recommendation/recommendation_full.html5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
src/Resources/contao/templates/recommendation/recommendation_simple.html5
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.navigation.recommendation_settings { | ||
display: none !important; | ||
} |