Hi Anton, we've reported a bug, it is already fixed on our Test environment, should be pushed on Production with next release on mid-April.
Hi Anton, we've reported a bug, it is already fixed on our Test environment, should be pushed on Production with next release on mid-April.
Have you fixed it indeed? I've just tried to add aYoutube component with a fixed VideoID to my working mobilegrid and this grid stops working again ![]()
Hello!
We will check with developers team.
Hello!
Unfortunately this bug still hasn't been fixed...
Ooops... So I'd wait for a few months until new version? I'm new here and do not have any experience with such workflow here.
We will try to find a workaround.
Hi Anton,
Remove YouTube component from Grid, instead add it in mapping using JavaScript. For example, run this code in mapping from item to grid:precodefunction parseUrlVars(url) {
var vars = [];
var params = url.slice(url.indexOf('?'));
if(params.indexOf('#')>=0) {
/Remove all symbols after '#'/
params = params.slice(0, params.indexOf('#'));
}
Code: Select all
params = params.slice(1).split('&');
for (var i in params) {
var item = params[i].split('=');
vars.push(item[0]);
vars[item[0]] = item[1];
}
return vars; }
var urlVars = parseUrlVars(value['link']), videoId = urlVars['v'];
var youtube = $('<iframe dsid="youtube" name="youtube" videoid="'+videoId+'" frameborder="0" allowfullscreen="1" title="YouTube video player" width="320" height="200" src="https://www.youtube.com/embed/'+videoId+'?enablejsapi=1"></iframe>');
$(element).find('[name="mobilegridcell_4"]').append(youtube);/code/prewhere 'mobilegridcell_4' is a grid item name where you add YouTube video.
YES! It works! Thank you so much!
Well, I'l try make it autoscale to fit the grid cell width but now it's much easier for me.
You're the most responsive team I ever saw!
If I simply add the control and set the video ID property, I get a Youtube error message. Does this mean that the control is still under repair? Thanks.
Hello!
Unfortunately this bug hasn't been fixed yet.