Skip to content

Commit 856263b

Browse files
author
Christian Oellers
committed
Initial release - Reupload 2019
0 parents  commit 856263b

File tree

36 files changed

+535
-0
lines changed

36 files changed

+535
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration - http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
max_line_length = 140
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
max_line_length = off
15+
trim_trailing_whitespace = false
16+

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# --------------------------------------------------------------------------------------------------------------------------------- Git only
2+
3+
# Compiled output
4+
/dist
5+
/documentation
6+
/out-tsc
7+
/tmp
8+
9+
# Dependencies
10+
/node_modules
11+
12+
# IDEs + Editors
13+
*.launch
14+
*.sublime-workspace
15+
.c9/
16+
.classpath
17+
.project
18+
.settings/
19+
/.idea
20+
21+
# IDE - VSCode
22+
!.vscode/extensions.json
23+
!.vscode/launch.json
24+
!.vscode/settings.json
25+
!.vscode/tasks.json
26+
.vscode/*
27+
28+
# Misc
29+
/.sass-cache
30+
/connect.lock
31+
/coverage
32+
/libpeerconnection.log
33+
/typings
34+
npm-debug.log
35+
testem.log
36+
yarn-error.log
37+
38+
# System files
39+
*/*.lnk
40+
*desktop.ini
41+
.DS_Store
42+
Thumbs.db
43+

LICENSE.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# MIT License
2+
3+
Copyright (c) 2013-2019 Christian Oerllers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Contao CMS - Module collection
2+
3+
- [About](#about)
4+
- [How to use](#how-to-use)
5+
- [Modules](#modules)
6+
- [License »](/LICENSE.md)
7+
8+
---
9+
10+
[![GitHub release](https://img.shields.io/github/release/TheRemoteCoder/Contao-Module-Collection.svg)](https://github.com/TheRemoteCoder/Contao-Module-Collection/releases)
11+
12+
<br>
13+
14+
15+
## About
16+
17+
A collection of small and easy-to-use modules for the Contao OpenSource CMS from version 2-3.
18+
19+
20+
<br><br>
21+
22+
## How to use
23+
24+
Refer to each modules own unique readme document. You will also find screenshots and system requirements.
25+
26+
27+
<br><br>
28+
29+
## Modules
30+
31+
Module features. The numbers behind the titles represent compatible Contao versions.
32+
33+
### TheRemoteCoderContentElements (2+)
34+
35+
- Extend text content element with column width setting.
36+
- Extend accordion content element with teaser image.
37+
- [Readme »](/TheRemoteCoderContentElements/docs/README.md)
38+
39+
### TheRemoteCoderFormListInfo (2-3+)
40+
41+
- Show more details in form overview - like email, subject and template.
42+
- Also works with the EFG module (Extended Form Generator).
43+
- [Readme »](/TheRemoteCoderFormListInfo/docs/README.md)
44+
45+
### TheRemoteCoderFormTooltipTitle (3+)
46+
47+
- Add a custom title to form elements in the frontend (intended to be used as styled tooltip).
48+
- [Readme »](/TheRemoteCoderFormTooltipTitle/docs/README.md)
49+
50+
### TheRemoteCoderPageNavigation (3+)
51+
52+
- Extend site structure to allow hiding single pages in custom menues from the templates.
53+
- [Readme »](/TheRemoteCoderPageNavigation/docs/README.md)
54+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
order deny,allow
2+
deny from all
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-- ********************************************************
2+
-- * *
3+
-- * IMPORTANT NOTE *
4+
-- * *
5+
-- * Do not import this file manually but use the Contao *
6+
-- * install tool to create and maintain database tables! *
7+
-- * *
8+
-- ********************************************************
9+
10+
--
11+
-- Table `tl_content`
12+
--
13+
14+
CREATE TABLE `tl_content` (
15+
`addImageTeaser` varchar(255) NOT NULL default '',
16+
`textColumnSettings` varchar(255) NOT NULL default ''
17+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
18+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
2+
3+
// ----------------------------------------------------------------------------------------------------------- Accordion
4+
5+
$GLOBALS['TL_DCA']['tl_content']['palettes']['accordionsingle'] = '{type_legend},type,mooType;{moo_legend},mooHeadline,mooStyle,mooClasses;{text_legend},text;{image_legend},addImage;{imageTeaser_legend},addImageTeaser;{protected_legend:hide},protected;{expert_legend:hide},guests,invisible,cssID,space';
6+
$GLOBALS['TL_DCA']['tl_content']['fields']['addImageTeaser'] = array(
7+
'label' => &$GLOBALS['TL_LANG']['tl_content']['addImageTeaser'],
8+
'exclude' => true,
9+
'inputType' => 'fileTree',
10+
'eval' => array('fieldType'=>'radio', 'files'=>true, 'tl_class'=>'clr')
11+
);
12+
13+
14+
// ---------------------------------------------------------------------------------------------------------------- Text
15+
16+
/* [unused] */
17+
18+
$GLOBALS['TL_DCA']['tl_content']['palettes']['text'] .= ';{textColumn_legend},textColumnSettings';
19+
$GLOBALS['TL_DCA']['tl_content']['fields']['textColumnSettings'] = array(
20+
'label' => &$GLOBALS['TL_LANG']['tl_content']['textColumnSettings'],
21+
'exclude' => true,
22+
'inputType' => 'select',
23+
'options' => array('25%', '50%', '75%'),
24+
'eval' => array('includeBlankOption'=>true)
25+
);
26+
27+
/* */
28+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# TheRemoteCoderContentElements
2+
3+
- [About](#about)
4+
- [How to use](#how-to-use)
5+
6+
---
7+
8+
<br>
9+
10+
## About
11+
12+
Extend some default Contao CMS elements that cannot be extended by DCA modifications only.
13+
14+
### Accordion (Single element)
15+
16+
- Added an optional 'Teaser image' field. Usage example: If you need to show a small image within the toggle that's different from the full version within the content. Requires custom template modification.
17+
- See Screenshot: `addImageTeaser.png`
18+
19+
### Text
20+
21+
- Added an option to set the elements width for multi-column layouts. Requires custom template modification.
22+
- See Screenshot: `textColumnSettings.png`
23+
24+
25+
<br><br>
26+
27+
## How to use
28+
29+
Copy the files into Contao's module folder. Refresh any caches and test if the content elements are still working.
30+
31+
Requirements:
32+
33+
- Tested with Contao 2.11.7
34+
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
order deny,allow
2+
deny from all
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
2+
3+
// ----------------------------------------------------------------------------------------------------------- Accordion
4+
5+
$GLOBALS['TL_LANG']['tl_content']['addImageTeaser'] = array('Ein Teaser-Bild hinzufügen', 'Dem Inhaltselement ein Teaser-Bild hinzufügen.');
6+
$GLOBALS['TL_LANG']['tl_content']['imageTeaser_legend'] = 'Teaserbild-Einstellungen';
7+
8+
9+
// ---------------------------------------------------------------------------------------------------------------- Text
10+
11+
$GLOBALS['TL_LANG']['tl_content']['textColumnSettings'] = array('Spaltenbreite', 'Spaltenbreite des Elementes wählen. Standard ist 100%.');
12+
$GLOBALS['TL_LANG']['tl_content']['textColumn_legend'] = 'Spaltenlayout';
13+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
order deny,allow
2+
deny from all
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
2+
3+
// ----------------------------------------------------------------------------------------------------------- Accordion
4+
5+
$GLOBALS['TL_LANG']['tl_content']['addImageTeaser'] = array('Add an teaser image', 'Add an teaser image to the content element.');
6+
$GLOBALS['TL_LANG']['tl_content']['imageTeaser_legend'] = 'Teaser image settings';
7+
8+
9+
// ---------------------------------------------------------------------------------------------------------------- Text
10+
11+
$GLOBALS['TL_LANG']['tl_content']['textColumnSettings'] = array('Column width', 'Select element column width. Default is 100%.');
12+
$GLOBALS['TL_LANG']['tl_content']['textColumn_legend'] = 'Column layout';
13+
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
/**
3+
* Table tl_form
4+
*/
5+
6+
if (isset($GLOBALS['TL_DCA']['tl_form']['fields']['format']['reference']['efgAliasField'])) {
7+
// EFG module
8+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'formattedMailRecipient';
9+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'formattedMailTemplate';
10+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'confirmationMailTemplate';
11+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'formattedMailSubject';
12+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'confirmationMailSubject';
13+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'jumpTo';
14+
15+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['format'] .= '<div style="color:#b3b3b3;margin:5px 0;">
16+
<span style="display:inline-block;width:115px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_mail'] . ':</span> %s <br>
17+
<span style="display:inline-block;width:115px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_tplSend'] . ':</span> %s <br>
18+
<span style="display:inline-block;width:115px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_tplConfirm'] . ':</span> %s <br>
19+
<span style="display:inline-block;width:115px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_mailSend'] . ':</span> %s <br>
20+
<span style="display:inline-block;width:115px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_mailConfirm'] . ':</span> %s <br>
21+
<span style="display:inline-block;width:115px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_jumpTo'] . ':</span> %s
22+
</div>';
23+
}
24+
else {
25+
// Contao default
26+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'recipient';
27+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'subject';
28+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['fields'][] = 'jumpTo';
29+
30+
$GLOBALS['TL_DCA']['tl_form']['list']['label']['format'] .= '<div style="color:#b3b3b3;margin:5px 0;">
31+
<span style="display:inline-block;width:80px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_mail'] . ':</span> %s <br>
32+
<span style="display:inline-block;width:80px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_subject'] . ':</span> %s <br>
33+
<span style="display:inline-block;width:80px;">' . $GLOBALS['TL_LANG']['tl_form']['vs_title_jumpTo'] . ':</span> %s
34+
</div>';
35+
}
36+
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# TheRemoteCoderFormListInfo
2+
3+
- [About](#about)
4+
- [How to use](#how-to-use)
5+
6+
7+
<br>
8+
9+
## About
10+
11+
Adds most important form settings to the overview list, which is especially helpful for development and QA checks. Works with and without installation of the EFG module (Extended Form Generator).
12+
13+
14+
<br><br>
15+
16+
## How to use
17+
18+
Just copy this folder to `/system/modules/` and open or reload the forms module in your backend. Contao 3+ needs the internal caches to be refreshed for every change.
19+
20+
<br>
21+
22+
Installation of the EFG module (Extended Form Generator) is highly recommended but not required.
23+
24+
Requirements:
25+
26+
- Tested with Contao 2.11.10 - 3.0.5
27+
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
order deny,allow
2+
deny from all
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
2+
3+
$GLOBALS['TL_LANG']['tl_form']['vs_title_jumpTo'] = 'Weiterleitung';
4+
$GLOBALS['TL_LANG']['tl_form']['vs_title_mail'] = 'E-Mail';
5+
$GLOBALS['TL_LANG']['tl_form']['vs_title_subject'] = 'Betreff';
6+
7+
// EFG
8+
$GLOBALS['TL_LANG']['tl_form']['vs_title_tplSend'] = 'TPL Versand';
9+
$GLOBALS['TL_LANG']['tl_form']['vs_title_tplConfirm'] = 'TPL Bestätigung';
10+
$GLOBALS['TL_LANG']['tl_form']['vs_title_mailSend'] = 'Betreff Versand';
11+
$GLOBALS['TL_LANG']['tl_form']['vs_title_mailConfirm'] = 'Betreff Bestätigung';
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');
2+
3+
$GLOBALS['TL_LANG']['tl_form']['vs_title_jumpTo'] = 'Redirect to';
4+
$GLOBALS['TL_LANG']['tl_form']['vs_title_mail'] = 'Email';
5+
$GLOBALS['TL_LANG']['tl_form']['vs_title_subject'] = 'Subject';
6+
7+
// EFG
8+
$GLOBALS['TL_LANG']['tl_form']['vs_title_tplSend'] = 'TPL send';
9+
$GLOBALS['TL_LANG']['tl_form']['vs_title_tplConfirm'] = 'TPL confirm';
10+
$GLOBALS['TL_LANG']['tl_form']['vs_title_mailSend'] = 'Subject send';
11+
$GLOBALS['TL_LANG']['tl_form']['vs_title_mailConfirm'] = 'Subject confirm';
12+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
order deny,allow
2+
deny from all
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
;;
2+
; Configure what you want the autoload creator to register
3+
;;
4+
register_namespaces = true
5+
register_classes = true
6+
register_templates = true
7+

0 commit comments

Comments
 (0)