forked from sulu/sulu-minimal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'sulu/release/1.5'
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<formats xmlns="http://schemas.sulu.io/media/formats" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://schemas.sulu.io/media/formats http://schemas.sulu.io/media/formats-1.1.xsd"> | ||
|
||
<!-- See: http://docs.sulu.io/en/latest/book/image-formats.html how to define image-formats --> | ||
|
||
<!-- Fixed width and dynamic height | ||
<format key="300x"> | ||
<meta> | ||
<title lang="en">Example Image</title> | ||
<title lang="de">Beispielbild</title> | ||
</meta> | ||
<scale x="300"/> | ||
</format> | ||
--> | ||
|
||
<!-- | ||
Render an image from the media_selection in a specific format the following way: | ||
<img src="{{ image.thumbnails['300x'] }}" alt="{{ image.title }}" title="{{ image.description|default(image.title) }}"> | ||
--> | ||
</formats> |