Access Resource Package Assets from Content Widget
Hello,
I'm wanting to access images within my resource package from the html inside of a content widget on my page. Is this possible? It appears Razor syntax does not get rendered so I cannot use one of these statements:
@Url.WidgetContent("~/ResourcePackages/MyResourcePackage/image/whatever.jpg")
I'm hoping I don't have to add these images to the SiteFinity Library just so I can access them.
Thanks,
Mike
I, too, would like to know if this is possible.
Hello Mike,
Images can be accessed from the file location from the HTML inside of a Content widget with the following code:
<img src=
"/ResourcePackages/MyResourcePackage/image/whatever.jpg"
/>