0

I have created an extension module for video content-type, where I extend ui_component form and the config file video content-type. In the form I give the opportunity to the user in admin to give a second url if they need a video exclusively for mobile devices. Also added the master template and preview template where both videos will be rendered. Everything works and I both videos are successfully shown. But now I want to implement functionality in the video content-type where depending if (mobileDevice) is true, then only render the video exclusively for mobile. I tried adding the check in the master_component js file but it does not make the check in the storefront, only in the admin part. Do you have any suggestions?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.