#Getting hold of UmbracoFile properties
1 messages · Page 1 of 1 (latest)
mainImage.Content?.Value<int>("umbracoWidth")
Or
If(mainImage.Content is Image image)
image.Width
Thanks 🙂
As Content is IPublsihed content has to be typed for Modelsbuilder as in theory it could be an svg
Etc
Also there is 99% of typos am on my phone
I'm just trying to pull out the height and width to put in a Slimsy Tag Helper that's in an Image Block, so could be any image, lol But I do like to have a srcset 🙂