Skip to content

Commit 856263b

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

36 files changed

Lines changed: 535 additions & 0 deletions

File tree

.editorconfig

Lines changed: 16 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text eol=lf

.gitignore

Lines changed: 43 additions & 0 deletions
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

Lines changed: 22 additions & 0 deletions
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

Lines changed: 54 additions & 0 deletions
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+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
order deny,allow
2+
deny from all
3+
Lines changed: 18 additions & 0 deletions
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+
Lines changed: 28 additions & 0 deletions
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+
Lines changed: 34 additions & 0 deletions
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+
22.7 KB
Loading

0 commit comments

Comments
 (0)