cdowdy / bolt-html5-video Goto Github PK
View Code? Open in Web Editor NEWBolt Extension that adds a field for local HTML5 video
License: MIT License
Bolt Extension that adds a field for local HTML5 video
License: MIT License
For some reason bolt updated and will now strip attributes not found in the "allowed_attributes" config settings when you use this extension in a contenttypes field (html etc) .
This worked for the entirety of the Bolt 3.x until recently (3.2.14 I noticed it first).
tags removed are:
Essentially they pushed an update, didn't tell anyone what it was doing and broke this haha.. but it's an easy fix. You have to add these to your bolt config htmlcleaner -> allowedtags and allowed_attributes
Bolt changed the back end templates slightly.
You'll get this exception page with the current (v2.0.1) version of the extension:
issue originates here:
Thanks To Cath Gillespie for letting me know!
would be nice to have the video you chose show immediately and not have to rely on a save and page reload.
but...
bolt has no documented way to do back-end extensions. No way to easily tie into bolt's back-end javascript. I've been bitten more than once with how they change things in template usage in minor version changes that break this extension and others I've built.
I also don't have time to go foraging through their JS and build a jquery UI widget that ties into theirs (which would change in undocumented ways by bolt core members again in minor version changes and I'd be back at square one)
So this is here so I don't forget to eventually do it
see bolt/bolt#7483
that gets fixed/updated or bolt developers decide that hey people wanting to fix your undocumented usage of something is something they'll like I'll return to maintaining this.
As of right now if you're not a core developer of bolt good luck having any input.
bolt3.5.5
video:
type: h5video
After setting contenttypes, the warning is always displayed:
The database needs to be updated/repaired. Go to 'Configuration' > 'Check Database' to do this now.
Table entries is not the correct schema: invalid column video
from bolt's extend screen and installing the version you want the config button isn't show and the config isn't created in app/config/extensions.
The extension isn't used until the twig callback function is used. So you have to call this->getConfig
in the callback function.
If you use this extension and use the twig tag in the "edit" screen, it no longer works :). Mind you that you have to have allowtwig: true
as an option in your contentType in the "body section:
Relevant bolt issue: bolt/bolt#6437
Hi,
i cannot get the extension to work. Whatever i do,
the extension ends up adding a video block with a path like this:
<source src="//files.mp4" type="video/mp4">
(and webm respectively).
this is unrelated to the way the file is uploaded, the extension simply does not seem to reference the filename correctly. or - very probably - i am doing something wrong.
in any case, help would be appreciated.
an update to how bolt handles the file system paths changed. The preview post of the default 404 image no longer shows...
this is for 3.4.6+ I assume since I have tested is before 3.4.6
with save_data as true and using the chrome save data extension the save data file isn't served to the browser.
The check for save data isn't picking up the merged options and isnt there in the check for addAssets
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.