File tree 3 files changed +18
-6
lines changed
3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
<!-- See: http://docs.sulu.io/en/latest/book/image-formats.html how to define image-formats -->
7
7
8
- <!--
9
- <format key="300x">
8
+ <format key =" x400" >
10
9
<meta >
11
- <title lang="en">Example Image</title>
12
- <title lang="de">Beispielbild </title>
10
+ <title lang =" en" >Header Image</title >
11
+ <title lang =" de" >Titelbild </title >
13
12
</meta >
14
13
15
- <scale x="300 "/>
14
+ <scale y = " 400 " />
16
15
</format >
17
- -->
18
16
19
17
<format key =" 1920x" >
20
18
<meta >
Original file line number Diff line number Diff line change 36
36
<tag name =" sulu.rlp" />
37
37
</property >
38
38
39
+ <property name =" headerImage" type =" single_media_selection" >
40
+ <meta >
41
+ <title lang =" en" >Header image</title >
42
+ <title lang =" de" >Titelbild</title >
43
+ </meta >
44
+
45
+ <params >
46
+ <param name =" types" value =" image" />
47
+ </params >
48
+ </property >
49
+
39
50
<property name =" article" type =" text_editor" >
40
51
<meta >
41
52
<title lang =" en" >Article</title >
Original file line number Diff line number Diff line change 3
3
{% block content %}
4
4
<section class =" jumbotron text-center" >
5
5
<div class =" container" >
6
+ {% if content .headerImage | default %}
7
+ <img src =" {{ content .headerImage .thumbnails ['x400' ] }}" class =" img-fluid" alt =" {{content .headerImage .title }}" />
8
+ {% endif %}
6
9
<h1 class =" jumbotron-heading" >{{ content .title }}</h1 >
7
10
<p class =" lead text-muted" >{{ content .article | raw }}</p >
8
11
</div >
You can’t perform that action at this time.
0 commit comments