Skip to content

Commit

Permalink
Introduce new related_documents field to directus for exhibition file…
Browse files Browse the repository at this point in the history
…s to live
  • Loading branch information
JamieC24 committed Jul 16, 2024
1 parent 52d53d0 commit d140ba6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
5 changes: 2 additions & 3 deletions resources/views/exhibitions/templates/details-2024.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@
<x-exhibition-cta :exhibition="$exhibition"></x-exhibition-cta>

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

@if (!empty($exhibition['exhibition_files']))
@include('includes.elements.exhibitions.files')
@if (!empty($exhibition['related_documents']))
@include('includes.elements.exhibitions.files', ['source' => $exhibition['related_documents']])
@endif

@if($reposition_curators == false && (!empty($exhibition['associated_curators']) || !empty($exhibition['external_curators'])))
Expand Down
17 changes: 7 additions & 10 deletions resources/views/includes/elements/exhibitions/files.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
@if (!empty($page_template))
@if (!empty($exhibition['exhibition_files']))
<x-exhibition-files :files="$exhibition['exhibition_files']"></x-exhibition-files>
@endif
@else
@section('exhibitions-files')
@if (!empty($exhibition['exhibition_files']))
<x-exhibition-files :files="$exhibition['exhibition_files']"></x-exhibition-files>
@endif
@endsection
@if(!isset($source))
@php
$source = $exhibition['exhibition_files']
@endphp
@endif
@if(!empty($source))
<x-exhibition-files :files="$source"></x-exhibition-files>
@endif

0 comments on commit d140ba6

Please sign in to comment.