Message of the day:
Common Web Platform for the New Zealand Government, need help? Ask!
Anything related to the Common Web Platform, a CMS built on Silverstripe for government
@Rathai has joined the channel
Hey team, the release announcement for CWP 2.5 is here! You can read all about the changes that the developments teams have been working on to make improvements to content editing, file management, and more 😁https://www.cwp.govt.nz/updates/news/cwp-2-5-has-arrived/
@Olivia has joined the channel
A developer should be able to set the default dimensions you’d like to be used. I think the current default is 600px but this can be adjusted (default setting not adjustable by CMS admin). Your theme sounds like it has its own set of dimensions (prob best to get these matching).
Totally agree. It looks as though somewhere in the code there's a set of dimensions for different viewport sizes, but the default dimensions for desktop don't match our default dimensions for desktop when we use our Video Element embed approach. I'm guessing the deep default is set up to support layouts with left and right columns, so it's smaller. But it fights back when you try to challenge it.
Also, hard coded dimensions are often not a great idea unless it asks for responsive dimensions.
There's a bug with this feature FYI where the dialogue accepts dimensions, but the 3rd party image/video doesn't respect them in the frontend
Media insertion works, but our version of it is very helpfully insisting on the dimensions it wants, despite asking me about the dimensions I'd like. I can cope this time, but I'm guessing there's a clash - possibly where the local theme overrides the generic media dimensions. (wry smile)
We do have custom styling and handling of transcripts, but right now I need a workaround that'll let me embed a particular Vimeo video in a News page (that won't accept the kinds of blocks we might otherwise use for a workaround). I can do this by embedding the video in Content via Media, and then using an Accordion for the transcript. (phew)