Closed igobranco closed 6 months ago
After an initial analysis, I propose 2 solutions to this issue:
video_player_plugin
to disable the playbutton;embeddable_plugin
to allow the placement of external contents. This would apply directly to this situation and wouldn't change or create complex behaviour on the video_player_plugin
.Last, but not least, there's a https://github.com/django-cms/djangocms-snippet that we can use to place HTML/JS blocks on the site.
I think we should use the 2nd option. We should separate the videos from the HTML/JS blocks. I think we should test the installation of the plugin djangocms-snippet on this repository.
I'll test out the djangocms-snippet
.
djangocms_snippet
works as intended and solves the issue.
Will push a PR to install it on nau-site-factory
Snippet that we should configure:
<iframe
title="Newsletter NAU"
src="https://mkt.nau.edu.pt/w/nereT0Sech5wqfQLy44e1920803de!uid"
allowfullscreen=""
style="width: 100%; height: 20rem;"
frameBorder="0">
</iframe>
Changed in production! https://www.nau.edu.pt/pt/newsletter/
When we change the video player to be lazy and add a additional step so we don't load the iframe even the user don't want to play the video #157 #167, this new feature had the impact of the "Subscribe to newsletter" page is using the video player component to iframe the e-goi.
https://www.nau.edu.pt/en/newsletter/