Browse code

Add teaser text and image to page item instead of looking up the teaser in first article of page

Benjamin Roth authored on24/08/2016 14:38:37
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,27 @@
1
+<?php
2
+
3
+/**
4
+ * Pagelist for Contao
5
+ *
6
+ * Copyright (c) 2015 Benjamin Roth
7
+ *
8
+ * @license LGPL-3.0+
9
+ */
10
+
11
+/**
12
+ * Fields
13
+ */
14
+$GLOBALS['TL_LANG']['tl_page']['teaserSRC'][0] = 'Teaser image';
15
+$GLOBALS['TL_LANG']['tl_page']['teaserSRC'][1] = 'Please choose an image file from the files directory.';
16
+$GLOBALS['TL_LANG']['tl_page']['teaserSize'][0] = 'Image size';
17
+$GLOBALS['TL_LANG']['tl_page']['teaserSize'][1] = 'Here you can set the image dimensions and the resize mode.';
18
+$GLOBALS['TL_LANG']['tl_page']['teaserCssID'][0] = 'Teaser CSS ID/class';
19
+$GLOBALS['TL_LANG']['tl_page']['teaserCssID'][1] = 'Here you can set an ID and one or more classes for the teaser element.';
20
+$GLOBALS['TL_LANG']['tl_page']['teaser'][0] = 'Article teaser';
21
+$GLOBALS['TL_LANG']['tl_page']['teaser'][1] = 'The article teaser can also be displayed with the content element &quot;article teaser&quot;.';
22
+
23
+
24
+/**
25
+ * Legends
26
+ */
27
+$GLOBALS['TL_LANG']['tl_page']['teaser_legend'] = 'Article teaser';