diff --git a/source/php/Component/Image/image.blade.php b/source/php/Component/Image/image.blade.php index 2e50ee82..c0f3c384 100644 --- a/source/php/Component/Image/image.blade.php +++ b/source/php/Component/Image/image.blade.php @@ -2,7 +2,7 @@
@if($src) {{$alt}} - @if($caption || $byline) + @if(($caption || $byline) && !$removeCaption)
@if($caption) {{ $caption }}
diff --git a/source/php/Component/Image/image.json b/source/php/Component/Image/image.json index 5b6fbc3c..339ddefc 100644 --- a/source/php/Component/Image/image.json +++ b/source/php/Component/Image/image.json @@ -11,7 +11,8 @@ "placeholderText": "Image missing", "placeholderIcon": "broken_image", "placeholderIconSize": "xl", - "imgAttributeList": [] + "imgAttributeList": [], + "removeCaption": false }, "description": { "alt": "Alt text of the image", @@ -22,7 +23,8 @@ "placeholderText": "Label to show if image is missing", "placeholderIcon": "Icon to display if image is missing / false to hide", "placeholderIconSize": "Icons size, please refer to image component for size.", - "imgAttributeList": "Attributes for the img element." + "imgAttributeList": "Attributes for the img element.", + "removeCaption": "Shows only the alt-text removing the image caption and byline" }, "view": "image.blade.php",