Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new related_documents field to directus for exhibition file… #696

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

JamieC24
Copy link
Contributor

…s to live

This work is a solution to ticket #14475 on Zendesk and adds support for a new field named "Related Documents" and does the following:

  • Changes the empty check in exhibitions/templates/details-2024.blade.php from $exhibition['exhibition_files'] to $exhibition['related_documents'] so that the related_documents field is only used by the new template

  • Introduces the $source variable that's initialised and given a default value in the exhibitions/files.blade.php file and passed a custom value in the @include in details-2024.blade.php to simplify the template code.

This work has been deployed to staging and approved by the client for deployment to production.

Copy link
Contributor

@sean-dunwoody sean-dunwoody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @JamieC24 , thanks for your work on this. Admittedly I'm not that familiar with the background here, and precisely how this fixes the issue, but assuming you've tested this on staging then I'm happy to approve this change. It looks ok to me 👍

@sean-dunwoody sean-dunwoody merged commit a513fb0 into master Jul 18, 2024
2 of 4 checks passed
@sean-dunwoody sean-dunwoody deleted the hotfix/exhibition-files branch July 18, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants