I'm having a display template (item) that gets a picture URL. ex:
var pictureURL = $getItemValue(ctx, "Picture URL");
picture URL is then www.awesome.com/picture.jpg?width=100&height=100
How can I only get the url (without the width and height) so I can set the image rendition myself. I want to use width and height, not rendidionID.
If I try:
var temp = pictureURL +"width=200&height=100"; <img src="_#= pictureURL =#_" alt="yahoo"/>
I get this as a result
If I try to use
.split("?") I get an error!