Skip to content

Conversation

@indykoning
Copy link
Member

@indykoning indykoning commented Nov 6, 2025

This PR adds external video support (By default Magento only does Vimeo + Youtube) to Rapidez 2.x
Due to it being available for an old Rapidez version it's been made to be backwards compatible so the images variable remains.

Once this has been approved i will create a PR for 3.x and 4.x with these changes (ROZ-415)

@indykoning indykoning requested a review from royduin as a code owner November 6, 2025 14:41

Str::macro(
'embedUrl',
function ($url) {
Copy link
Member Author

Choose a reason for hiding this comment

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

This function is taken from Statamic, since it is not installed by default we utilise this macro

Copy link
Collaborator

Choose a reason for hiding this comment

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

Be aware that the license within Statamic does not necessarily allow for direct copies of its code without direct consent: https://github.com/statamic/cms/blob/5.x/LICENSE.md

Copy link
Member

Choose a reason for hiding this comment

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

Please double check with @jackmcdade 😇 and add some love notes if it's ok to copy-paste ❤️

Choose a reason for hiding this comment

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

Go for it, it's nothing particularly proprietary – just a bunch of string manipulation. Merry Christmas! 🎄

Copy link
Member Author

Choose a reason for hiding this comment

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

Awesome! Thanks Jack, Merry Christmas 🚀

@indykoning
Copy link
Member Author

See: #1135 with regards to failing tests

@royduin
Copy link
Member

royduin commented Jan 13, 2026

Follow up: RAP-1737

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.

5 participants