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

Featured images not included in news stories #946

Open
trubach opened this issue Sep 26, 2023 · 3 comments · May be fixed by #947
Open

Featured images not included in news stories #946

trubach opened this issue Sep 26, 2023 · 3 comments · May be fixed by #947
Assignees
Labels
bug Something isn't working

Comments

@trubach
Copy link
Contributor

trubach commented Sep 26, 2023

Featured Images associated with news stories do not display in the news story default view mode. The reason for this is because it's not included in the twig template.

We'd like to add a field to the news content type that toggles whether the featured image should display on the news article. Then, in the twig template, if that field is checked, display the image. By default, the display image field should be checked.

Alternatively, we could remove using the content.field variables in the news twig templates and just output {{ content }}, which would give the end user control of the display.

@trubach trubach added the bug Something isn't working label Sep 26, 2023
@github-actions
Copy link

@trubach trubach linked a pull request Sep 26, 2023 that will close this issue
@trubach
Copy link
Contributor Author

trubach commented Feb 14, 2024

Adding a note here as a reminder to update the documentation page at https://drupal.webtheme.illinois.edu/tutorials/adding-news-story after this feature is added. It mentions that the featured image will not show up in the story.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants