Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 608 Bytes

UPGRADE.md

File metadata and controls

13 lines (7 loc) · 608 Bytes

###From 1.0 to 1.1

Twig methods media() and formPreview() no longer exist for the benefit of vlabs_filter() & vlabs_media() twig filters.

Calls like this:

{{ media(entity.image, 'image', { resize : { 'width' : 300, 'height' : 300 }, name : 'John Doe' } ) }}

must be replaced by:

{{ entity.image|vlabs_filter('resize',  { 'width' : 300, 'height' : 300 } )|vlabs_media('image', { name : 'John Doe' } ) }}

The template form field vlabs_file is also changed. Please update yours if you overided it.