CrumpledDog / Umbraco-AzureCDNToolkit

Makes it easy to fully utilise the Azure CDN with a Umbraco website
13 stars 14 forks source link

Question: Do the CropUrl lookup methods need to be tied to the UrlHelper class? #6

Closed Philo closed 7 years ago

Philo commented 7 years ago

Hi,

Just looking at the library and was wondering whether the Cdn retrieval methods have to be tied to the UrlHelper class, I would prefer to be able to use them as extension methods on IPublishedContent so things like the model builder, ditto or other custom model mapping tool can utilise them.

Is this possible?

Jeavon commented 7 years ago

You could do that however the usage of IPublishedContent extension methods is not recommended and the ones in Umbraco Core such as GetCropUrl are being obsoleted in favour of UrlHelper or HtmlHelper extensions instead.