Skip to content

Commit 52d53d0

Browse files
authored
Merge pull request #694 from FitzwilliamMuseum/hotfix/14475-exhibition-files-component
fix: files component add to new exhibition template
2 parents 56ab429 + e602080 commit 52d53d0

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

resources/views/exhibitions/templates/details-2024.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
<x-exhibition-cta :exhibition="$exhibition"></x-exhibition-cta>
1818

1919
@include('support.components.components-repeater', ['page' => $exhibition])
20-
2120
{{-- {{ dd($exhibition) }} --}}
2221

22+
@if (!empty($exhibition['exhibition_files']))
23+
@include('includes.elements.exhibitions.files')
24+
@endif
25+
2326
@if($reposition_curators == false && (!empty($exhibition['associated_curators']) || !empty($exhibition['external_curators'])))
2427
@include('exhibitions.components.curators')
2528
@endif
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
@section('exhibitions-files')
2-
@if(!empty($exhibition['exhibition_files']))
1+
@if (!empty($page_template))
2+
@if (!empty($exhibition['exhibition_files']))
33
<x-exhibition-files :files="$exhibition['exhibition_files']"></x-exhibition-files>
44
@endif
5-
@endsection
5+
@else
6+
@section('exhibitions-files')
7+
@if (!empty($exhibition['exhibition_files']))
8+
<x-exhibition-files :files="$exhibition['exhibition_files']"></x-exhibition-files>
9+
@endif
10+
@endsection
11+
@endif

0 commit comments

Comments
 (0)